Version 2 (modified by sam, 10 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

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)