From: Alex A. <Az...@ne...> - 2002-06-14 09:15:24
|
Hi, I'm in need to retrieve the int value for a GL String constant when parsing quake3 shaders from a file. Example: blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA I prepared a method like: int getIntForConstant("GL_SRC_ALPHA") But is there a way to get around this without having to prepare a lookup table (Hashtable or similar), maybe a static method in GLContext ? Java QuakeIIIArena is on the way... -=[AziD]=- |