Giter Site home page Giter Site logo

Comments (6)

pm2845 avatar pm2845 commented on June 11, 2024

I have the gl library compiled, but I get the same errors when I run the demos.

Building draw.go:

$ go build draw.go

github.com/banthar/gl

gl.go: In function ‘cgo_0ca662427903_Cfunc_glTransformFeedbackVaryings’:
gl.go:670:2: warning: passing argument 3 of ‘__glewTransformFeedbackVaryings’ from incompatible pointer type [enabled by default]
gl.go:670:2: note: expected ‘const GLchar *
’ but argument is of type ‘GLchar *
gl.go: In function ‘cgo_0ca662427903_Cfunc_glShaderSource’:
gl.go:2934:2: warning: passing argument 3 of ‘__glewShaderSource’ from incompatible pointer type [enabled by default]
gl.go:2934:2: note: expected ‘const GLchar *
’ but argument is of type ‘GLchar *

Running it renders a white window, then when I click on it, black. Nothing else happens or shows up. Escape works however. The sdlgears example is the only one that works fully for me.

from gl.

banthar avatar banthar commented on June 11, 2024
gl.go: In function ‘_cgo_0ca662427903_Cfunc_glShaderSource’:
gl.go:241: 2: warning: passing argument 3 of ‘__glewShaderSource’ from incompatible pointer type
gl.go:241: 2: note: expected ‘const GLchar **’ but argument is of type ‘GLchar **’
gl.go: In function ‘_cgo_0ca662427903_Cfunc_glTransformFeedbackVaryings’:
gl.go:619: 2: warning: passing argument 3 of ‘__glewTransformFeedbackVaryings’ from incompatible pointer type
gl.go:619: 2: note: expected ‘const GLchar **’ but argument is of type ‘GLchar **’

Those are only warnings. As far as I know this won't cause any trouble.

Running it renders a white window, then when I click on it, black. Nothing else happens or shows up. Escape works however.

It's probably due to differences in OpenGL implementations. What's your OpenGL version? I'm using 3.3.0 NVIDIA 295.20 and it works fine.

The sdlgears example is the only one that works fully for me.

gomandel.go is currently broken. glfwgears.go requires glfw.

Edit: gomandel.go should work fine now.

from gl.

andrebq avatar andrebq commented on June 11, 2024

Just to inform, on my computer with a NVidia card the glfw samples works without any problem.

from gl.

pm2845 avatar pm2845 commented on June 11, 2024

I'm on a suckier platform right now, so I'm running 2.1 Mesa 7.11

from gl.

pwaller avatar pwaller commented on June 11, 2024

@pm2845: What OS (&version) are you/ were you on? Is this still an issue? Please update us either way.

from gl.

pwaller avatar pwaller commented on June 11, 2024

I've tested this on glew 1.{6,7,8,9}.0 without any obvious issues, so I'm closing this. If this problem persists, please re-open.

from gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.