Anyone knows how to print an bitmap with glDrawPixels, have the pixeldata in an pointer, saved as RGB and the size width*height*3.
Please give me an example
Anyone knows how to print an bitmap with glDrawPixels, have the pixeldata in an pointer, saved as RGB and the size width*height*3.
Please give me an example
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
What i had in mind was drawing a 2d bitmap to the rendering context, without having to bindtexture etc.
/Andreas
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, *array)
The last one is the pointer to array, previous - the data type in the array
The position is defined by the glRasterPos() function
http://www.kaldata.net
its so hard for me to learn OpenGL headers ... Its not so easy as DelphiX
code your Idea
glDrawPixels should be much much slower in drawing than normal texture.
Wow, digging up 9 year old threads are we? However, you cant compare OpenGL to DelphiX its like comparing apples to oranges. OpenGL and D3D (wich DelphiX uses internally) is quite similar in practice.
OpenGL (atleast before version 3.1 with intermediate mode) is generally considered more beginner friendly through.
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
OpenGL is not OOP Structured unlike DelpHiX but this is exciting
code your Idea
Bookmarks