Any function prefix **gl** becomes **gl.**, and any constant prefix **GL_** also becomes **gl.**. It is in most cases very easy to translate OpenGL code from C to Lua. The OpenGL API (application programming interface) is specified for the C language, however we will be using it from within Lua. It's worth nothing this, because a lot of tutorial material out there on the internet is for older or newer versions of OpenGL, and thus easily misleading. For GLSL (GPU) programming, we will use version 1.2, which correponds to OpenGL version 2.1. We will work against OpenGL version 2.1, which is more compatible with the various operating systems on laptops today, and closer to the OpenGL ES 2.0 available on most mobile devices. > Rather confusingly OpenGL and GLSL have many different versions. Although some of the text here is specific to OpenGL/GLSL, the general process is applicable to many other rendering systems. Similarly, for writing programs on the GPU we will use OpenGL Shader Language (GLSL). () implemented by most graphics processing unit (GPU) hardware in personal computers and mobile devices. We will limit ourselves mostly to the common practice of real-time rendering using the OpenGL library, probably the most widely used graphics interfaces in use today. The world of computer graphics is vast and ever-growing.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |