Welcome to Ork project!

Ork, for OpenGL rendering kernel, provides a C++ API on top of OpenGL, which greatly simplifies the development of 3D applications.

Suppose that you want to draw a mesh in an offscreen framebuffer, with a program that uses a texture. Assuming that these objects are already created, with the OpenGL API you need something like this:
glActiveTexture(GL_TEXTURE0 + myUnit);
glBindTexture(GL_TEXTURE_2D, myTexture);
glUniform1i(glGetUniformLocation(myProgram, "mySampler"), myUnit);
glBindBuffer(GL_ARRAY_BUFFER, myVBO);
glVertexAttribPointer(0, 4, GL_FLOAT, false, 16, 0);
glBindFramebuffer(GL_FRAMEBUFFER, myFramebuffer);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
With the Ork API you simply need two steps (and the first one does not need to be repeated before each draw, unless you want a different texture for each draw):
myFramebuffer->draw(myProgram, *myMesh);

See the Ork 3.1 API online.

Latest News

Ork 3.1 released

Eric Bruneton - 2010-10-11 12:22 -
Project Summary
Tracker Tracker

 - Bugs(1 open / 1 total)

 - Support(0 open / 0 total)

 - Patches(0 open / 5 total)

 - Feature Requests(0 open / 0 total)

Mail Lists  Mailing Lists ( 1 public lists )
SCM  SCM Tree ( 38 commits, 264 adds )
FTP  Released Files



Powered By GForge Collaborative Development Environment