Skip to main content
added 178 characters in body
Source Link

Because 3D libraries like OpenGL and DirectX draw everything using triangles, including sprites.

You put a texture (image) on triangles, put two triangles side by side to make a square and that's how you draw a "sprite" with OpenGL or Direct3D.

enter image description here

The sprites are drawn using triangles, its not for collisions, its simply for drawing them.

Because 3D libraries like OpenGL and DirectX draw everything using triangles, including sprites.

You put a texture (image) on triangles, put two triangles side by side to make a square and that's how you draw a "sprite" with OpenGL or Direct3D.

Because 3D libraries like OpenGL and DirectX draw everything using triangles, including sprites.

You put a texture (image) on triangles, put two triangles side by side to make a square and that's how you draw a "sprite" with OpenGL or Direct3D.

enter image description here

The sprites are drawn using triangles, its not for collisions, its simply for drawing them.

Source Link

Because 3D libraries like OpenGL and DirectX draw everything using triangles, including sprites.

You put a texture (image) on triangles, put two triangles side by side to make a square and that's how you draw a "sprite" with OpenGL or Direct3D.