iphone - OpenGLES 1.1 and 2.0, supporting both -
i have 2 separate renderers, 1 1.1 , 2.2
i have bunch of items hold image information , texture handle generated whichever renderer using.
items dumb objects , don't want introduce opengl specific functionality them. problem is, need store texture handle somewhere. store inside each item, handle of type gluint.
if use gluint means including either gl.h es1/ or es2/. both typedef'd unsigned ints... ok use unsigned int? seems bad practice... example if opengl 3.0 came out , gluint different, item broken.
any ideas?
thanks reading.
subsequent versions of opengl supersets of previous versions. opengl specific types meant hide underlying systems consistent across versions. example if have int 16 bit gluint might defined unsigned long.
therefore say: go smallest common denominator (es1.1).
Comments
Post a Comment