Pages: [1]
|
|
|
Author
|
Topic: OpenGL? Sprites? Wha? (Read 6244 times)
|
the grand fot
Zebranky food
Offline
Gender:
Posts: 13
|
Aight, so I hear tell that y'all are using openGL for the new SC2. I'm sure there's a good reason behind it, of course.... anyone mind explaining it to me?
OpenGL is mostly a 3D and/or polygon library, isn't it? Unless there are some wild changed planned, SC2 is almost exclusively sprite-based... so what's the openGL gonna be for?
|
|
|
Logged
|
|
|
|
Mika
Core Team
*Many bubbles*
Offline
Gender:
Posts: 121
|
OpenGL usage is optional, though recommended if using TNT2 class gfx card or better (its faster than pure 2d mode then). With OpenGL, things like scaling game's 320x240 surface to screen resolution (640x480 normally) can be done hardware-accelerated, like some fullscreen effects (few different kind of fades currently). Also bilinear filtering and 'scanlines' can be done with it to make things look less pixelated.
Game works internally almost completely as 2d using software blit operations and code starts to differ more between "pure 2d" and OpenGL code only within page flip function, where ogl does upload current surface to texture and draws it as one big quad, etc.
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|