How to extract *data ptr/mem from a GLFWImage

jigglysnot wrote on Friday, June 19, 2009:

Hi,

GLFWImage myImage;
glfwReadImage("pong3d_title.tga", &myImage, GLFW_ORIGIN_UL_BIT) # no flags

How do I get the raw data from a GLFWImage? ie myImage->data

In the API / class documentation for GLFWImage, there is no accessor for GLFWImage->data !!!!

Thanks,
just a student

elmindreda wrote on Saturday, June 20, 2009:

Yes there is.

http://glfw.sourceforge.net/GLFWReference26.pdf

elmindreda wrote on Saturday, June 20, 2009:

See for instance section 3.6.1.

jigglysnot wrote on Saturday, June 20, 2009:

ahhh ok, i wasnt entirely clear: i’m using Ruby and working with the Ruby bindings/wrapper of GLFW.

I dont know how to extract the data field for the Ruby object … but I know this is beyond the scope of this forum :slight_smile:

Thanks