| Version 0.0.4 | |
|---|---|
| Tweet Topic Started: Jun 1 2015, 05:18 AM (23 Views) | |
| Orion | Jun 1 2015, 05:18 AM Post #1 |
|
Charm Quark
![]()
|
Gluon Engine 0.0.4 now features multiple OpenGL and SDL functions which have been made compatible through bindings, this process is still ongoing but currently, we do have a few functions usable in Lua. Features: SDL_CreateWindow(string title,num,num) //Opens a window with the title of args[str], numbers (should) represent it's width and height. SDL_VideoInit(str) //Initializes SDL video, uses str as the video driver ID. SDL_VideoQuit() //Quits the SDL video render. SDL_GetNumVideoDrivers() //SHOULD return an integer based off the number of unique video drivers, instead returns a function value; BUGBUG. glVertex2d(x , y) //Draws / creates a vertex based off 2 doubles (x and y) glBegin(enum mode) // "Delimits the vertices of a primitive or a group of like primitives." glEnd() //Contrary to the former. glDisable(enum capability) //Toggles serverside OpenGL capabilities. glCullFace(enum face = GL_BACK) //Culls a face corresponding to an enumeration. glShadeModel(enum shade type = GL_SMOOTH) //Shades a model under the enumeration input. glViewport(num x, num y, num w, num h) //"Sets the viewport" glPushMatrix() //"Push and pop the current matrix stack" glBindTexture(enum target mesh, string texture) //Binds a texture to a given mesh. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Engine Versions · Next Topic » |







12:31 AM Jul 11