![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: $ $Revision: $ $State: $ 00007 ******************************************************************************/ 00008 00010 #pragma once 00011 00012 #include <vrvGraphics/vrvGraphics.h> 00013 00014 namespace makVrv 00015 { 00018 class DT_DLL_VRVGRAPHICS DtTextureObject 00019 { 00020 public: 00021 DtTextureObject(); 00022 ~DtTextureObject(); 00023 00024 enum ComponentTypes 00025 { 00026 ComponentType_int8, 00027 ComponentType_int16, 00028 ComponentType_int32, 00029 ComponentType_float16, 00030 ComponentType_float32, 00031 ComponentTypes_End 00032 }; 00033 00037 void setType(unsigned int count, ComponentTypes type); 00038 00039 void resize(int w,int h); 00040 00041 void bind(); 00042 void unbind(); 00043 00044 unsigned int id() const; 00045 00046 protected: 00047 unsigned int myId; 00048 bool myBoundFlag; 00049 unsigned int myInternalFormat; 00050 unsigned int myPixelFormat; 00051 }; 00052 }