Version 4 (modified by sam, 8 years ago) (diff)

Name changed from dev/gl4 to dev/gfx/gl4

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:

  • glGenTextures (available in all flavours)
  • glBindTexture (available in all flavours)
  • glTexImage2D (available in all flavours)
  • glTexParameteri (available in all flavours)
  • glDeleteTextures (available in all flavours)

Video::Setup():

  • glViewport (available in all flavours)
  • glEnable (available in all flavours)
  • glShadeModel (not in GLES 2)
  • glClearColor (available in all flavours)
  • glClearDepth (available in all flavours, as glClearDepthf sometimes)
  • glHint (available in all flavours)

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)