<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>? about GEM #ifdef's</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>BLOCKQUOTE {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
DL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
UL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
OL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
LI {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
</STYLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=880060600-09092002>Those 
symbols are defined in gl.h I believe.&nbsp; I imagine that the GL_VERSION_1_1 
should be defined for 1.1 and higher.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=880060600-09092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=880060600-09092002>Yeah, 
there are a few fairly hairy tracts of code where ifdef blocks are used to 
implement certain features with a variety of techniques according to the openGL 
version and extensions available.&nbsp; </SPAN></FONT><FONT face=Arial 
color=#0000ff size=2><SPAN class=880060600-09092002><SPAN 
class=880060600-09092002>I don't think that anyone is going to be using OpenGL 
&lt; 1.1 anymore (am I wrong?),&nbsp; so many of these blocks are going to be 
pretty redundant (and possibly untested for some years).&nbsp;&nbsp; 
</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=880060600-09092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=880060600-09092002>It 
would certainly be nice to clean this up... and implementing an OS independent 
runtime extension check (and openGL version checking mechanism?) would be a nice 
addition too to allow binaries to be built which can run on a range of hardware 
(and deal with&nbsp;Windows' "different" way&nbsp;of handling 
extensions).&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=880060600-09092002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=880060600-09092002>daniel</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> pd-dev-admin@iem.kug.ac.at 
  [mailto:pd-dev-admin@iem.kug.ac.at]<B>On Behalf Of </B>tigital<BR><B>Sent:</B> 
  Monday, 9 September 2002 9:26 AM<BR><B>To:</B> 
  pd-dev@iem.kug.ac.at<BR><B>Subject:</B> [PD-dev] ? about GEM 
  #ifdef's<BR><BR></FONT></DIV>
  <DIV>hiya,</DIV>
  <DIV><FONT face=Arial color=#0000ff size=2></FONT><BR></DIV>
  <DIV>...well, on OS X, I finally think I've got a better way of opening movies 
  (and therefore everything else) that does without the copy from offscreen 
  buffer to image.data...however, it did make me wonder what a coupla #ifdef's 
  are, or at least their purpose:</DIV>
  <DIV><BR></DIV>
  <DIV>#ifdef<FONT color=#683821 size=-1> GL_VERSION_1_1</FONT></DIV>
  <DIV>...and...</DIV>
  <DIV><FONT color=#683821 size=-1>#elif GL_EXT_texture_object</FONT></DIV>
  <DIV><FONT color=#683821 size=-1><BR></FONT></DIV>
  <DIV><FONT color=#683821 size=-1>...I know that OS X supports GL_Version 1.3 
  in hardware and 1.1 in software (at least on my Radeon mobility), but I don't 
  see a GL extension for GL_EXT_texture_object...is this some kind of legacy 
  extension?</FONT></DIV>
  <DIV><FONT color=#683821 size=-1><BR></FONT></DIV>
  <DIV><FONT color=#683821 size=-1>Also, is the #ifdef GL_VERSION_1_1 valid for 
  version 1.1 and higher?</FONT></DIV>
  <DIV><FONT color=#683821 size=-1><BR></FONT></DIV>
  <DIV><FONT color=#683821 size=-1>I'm quickly coming to an understanding that I 
  need to acquaint myself with the "red book" a bit more, cuz I just spent the 
  last week trying figure out why textures came out weird, and it turns out to 
  just be a need for GL_UNSIGNED_INT_8_8_8_8_REV instead of 
  GL_UNSIGNED_BYTE...at least as far as GL_RGBA goes!</FONT></DIV>
  <DIV><FONT color=#683821 size=-1><BR></FONT></DIV>
  <DIV><FONT color=#683821 size=-1>Lastly, maybe it would be a good idea to 
  central-ly locate and explain all of the existent "#ifdef's" in a readme file, 
  so there'd be less confusion for new contributors...</FONT></DIV>
  <DIV><FONT color=#683821 size=-1><BR></FONT></DIV>
  <DIV><FONT color=#683821 size=-1>l8r,</FONT></DIV>
  <DIV><FONT color=#683821 size=-1>jamie</FONT></DIV></BLOCKQUOTE></BODY></HTML>