Version 4 (modified by 11 years ago) (diff) | ,
---|
OpenGL 4.0 and other transitions
Trying to get things done the right way.
Most of the current code is written for OpenGL 1.1. We want to target both OpenGL 4.0, OpenGL ES and OpenGL ES 2.0.
OpenGL usage in Lol Engine
class TileSet
:
(available in all flavours)glGenTextures
(available in all flavours)glBindTexture
(available in all flavours)glTexImage2D
(available in all flavours)glTexParameteri
(available in all flavours)glDeleteTextures
Video::Setup()
:
(available in all flavours)glViewport
(available in all flavours)glEnable
glShadeModel
(not in GLES 2)(available in all flavours)glClearColor
(available in all flavours, asglClearDepth
glClearDepthf
sometimes)(available in all flavours)glHint
Video::SetFov()
:
glMatrixMode
(not in GLES 2)glLoadIdentity
(not in GLES 2)glOrtho
(not in GLES 2)glFrustum
(not in GLES 2)glTranslatef
(not in GLES 2)