This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Noob help: GL renderer
#6
(10-30-2014, 02:49 PM)Bigpet Wrote: The reason for the constant definitions is easy to show. Just look at this without the constant aliases

glTexImage2D( 0x0DE1 , 0, 0x8051, 512, 512, 0, 0x1907, 0x1401, data)

and with the constant definitions:

glTexImage2D(GL_TEXTURE_2D , 0, GL_RGB8, 512, 512, 0, GL_RGB, GL_UNSIGNED_BYTE, data)


The function prototypes are there for the same reason they're in any header, so that you can use them and link against something that implements them.
The thing with the OpenGL extensions is just that they are loaded at runtime in some implementations because you can't know at link-time which extensions are available on all system you will be running on.

Anyway, this has nothing to do with rpcs3 specifically and we did not manually write the glext.h header (it's from the official opengl site https://www.opengl.org/registry/api/GL/glext.h ).
Why can't we use
glTexImage2D( a , 0, b, 512, 512, 0, c, d, data)

in stead of,
glTexImage2D( 0x0DE1 , 0, 0x8051, 512, 512, 0, 0x1907, 0x1401, data)
, This saved us more typing! DodgyDodgyConfused

Personally, for me, this is more human friendly:
glTexImage2D(GL_TEXTURE_2D , 0, GL_RGB8, 512, 512, 0, GL_RGB, GL_UNSIGNED_BYTE, data)

May be you guys are more robot than human, lol Big Grin So you use this:
glTexImage2D( 0x0DE1 , 0, 0x8051, 512, 512, 0, 0x1907, 0x1401, data)

in stead of,
glTexImage2D(GL_TEXTURE_2D , 0, GL_RGB8, 512, 512, 0, GL_RGB, GL_UNSIGNED_BYTE, data)
this.
Reply


Messages In This Thread
Noob help: GL renderer - by gamenoob - 10-30-2014, 01:10 PM
RE: Noob help: GL renderer - by Ashe - 10-30-2014, 01:23 PM
RE: Noob help: GL renderer - by gamenoob - 10-30-2014, 01:37 PM
RE: Noob help: GL renderer - by Bigpet - 10-30-2014, 02:49 PM
RE: Noob help: GL renderer - by gamenoob - 10-30-2014, 03:28 PM
RE: Noob help: GL renderer - by tambre - 10-30-2014, 02:52 PM
RE: Noob help: GL renderer - by Bigpet - 10-30-2014, 04:10 PM
RE: Noob help: GL renderer - by gamenoob - 11-01-2014, 06:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)