As a Direct3D developer I can use the ID3DXSprite class (in D3DX library) for drawing 2D graphics. What's the best way to implement this functionality in OpenGL?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
I think, that if you want to draw just 2D sprite on screen, you can simply draw textured rectangle. If sprite should be square, you can also draw point with point size set bigger than 1 and some texture enabled. But I don't know, if you can set some texture coordinates in vertex shader (but probably not, because you have just one point). Other way is to split this one point in geometry shader and assign corresponding texture coordinates. |
|||||
|