00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Mark Alexander 00008 * Side Effects 00009 * 123 Front Street West, Suite 1401 00010 * Toronto, Ontario 00011 * Canada M5J 2M2 00012 * 416-504-9876 00013 * 00014 * NAME: RE_OGLTexture2D.h ( RE Library, C++) 00015 * 00016 * COMMENTS: 00017 * Texture Rectangle. Can be any format, non-pow2, but cannot do any 00018 * filtering. 00019 */ 00020 #ifndef RE_OGLTextureRectangle_h 00021 #define RE_OGLTextureRectangle_h 00022 00023 #include "RE_OGLTextureBase2D.h" 00024 00025 class RE_OGLTextureRectangle : public RE_OGLTextureBase2D 00026 { 00027 public: 00028 RE_OGLTextureRectangle(); 00029 virtual ~RE_OGLTextureRectangle(); 00030 00031 virtual const char *className() const 00032 { return "RE_OGLTextureRectangle"; } 00033 00034 virtual bool hasTextureSupport(RE_Render *r); 00035 virtual bool hasMipMapSupport(RE_Render *) { return false; } 00036 virtual int getMaxTextureSize(RE_Render *r); 00037 00038 virtual RE_TextureDimension getTextureType() const 00039 { return RE_TEXTURE_RECTANGLE; } 00040 00041 protected: 00042 virtual int getGLType() const; 00043 virtual int getGLTypeBinding() const; 00044 }; 00045 00046 #endif
1.5.9