Public Types |
enum | Face {
POSITIVE_X = 0,
NEGATIVE_X = 1,
POSITIVE_Y = 2,
NEGATIVE_Y = 3,
POSITIVE_Z = 4,
NEGATIVE_Z = 5
} |
enum | WrapParameter { WRAP_S,
WRAP_T,
WRAP_R
} |
enum | WrapMode {
CLAMP = GL_CLAMP,
CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE,
CLAMP_TO_BORDER = GL_CLAMP_TO_BORDER_ARB,
REPEAT = GL_REPEAT,
MIRROR = GL_MIRRORED_REPEAT_IBM
} |
enum | FilterParameter { MIN_FILTER,
MAG_FILTER
} |
enum | FilterMode {
LINEAR = GL_LINEAR,
LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR,
LINEAR_MIPMAP_NEAREST = GL_LINEAR_MIPMAP_NEAREST,
NEAREST = GL_NEAREST,
NEAREST_MIPMAP_LINEAR = GL_NEAREST_MIPMAP_LINEAR,
NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST
} |
enum | InternalFormatMode {
USE_IMAGE_DATA_FORMAT,
USE_USER_DEFINED_FORMAT,
USE_ARB_COMPRESSION,
USE_S3TC_DXT1_COMPRESSION,
USE_S3TC_DXT3_COMPRESSION,
USE_S3TC_DXT5_COMPRESSION,
USE_PVRTC_2BPP_COMPRESSION,
USE_PVRTC_4BPP_COMPRESSION,
USE_ETC_COMPRESSION,
USE_RGTC1_COMPRESSION,
USE_RGTC2_COMPRESSION,
USE_S3TC_DXT1c_COMPRESSION,
USE_S3TC_DXT1a_COMPRESSION
} |
enum | InternalFormatType { NORMALIZED = 0x0,
FLOAT = 0x1,
SIGNED_INTEGER = 0x2,
UNSIGNED_INTEGER = 0x4
} |
enum | ShadowCompareFunc {
NEVER = GL_NEVER,
LESS = GL_LESS,
EQUAL = GL_EQUAL,
LEQUAL = GL_LEQUAL,
GREATER = GL_GREATER,
NOTEQUAL = GL_NOTEQUAL,
GEQUAL = GL_GEQUAL,
ALWAYS = GL_ALWAYS
} |
enum | ShadowTextureMode { LUMINANCE = GL_LUMINANCE,
INTENSITY = GL_INTENSITY,
ALPHA = GL_ALPHA
} |
enum | GenerateMipmapMode { GENERATE_MIPMAP_NONE,
GENERATE_MIPMAP,
GENERATE_MIPMAP_TEX_PARAMETER
} |
typedef std::list< ref_ptr
< TextureObject > > | TextureObjectList |
enum | Values {
OFF = 0x0,
ON = 0x1,
OVERRIDE = 0x2,
PROTECTED = 0x4,
INHERIT = 0x8
} |
enum | Type {
TEXTURE,
POLYGONMODE,
POLYGONOFFSET,
MATERIAL,
ALPHAFUNC,
ANTIALIAS,
COLORTABLE,
CULLFACE,
FOG,
FRONTFACE,
LIGHT,
POINT,
LINEWIDTH,
LINESTIPPLE,
POLYGONSTIPPLE,
SHADEMODEL,
TEXENV,
TEXENVFILTER,
TEXGEN,
TEXMAT,
LIGHTMODEL,
BLENDFUNC,
BLENDEQUATION,
LOGICOP,
STENCIL,
COLORMASK,
DEPTH,
VIEWPORT,
SCISSOR,
BLENDCOLOR,
MULTISAMPLE,
CLIPPLANE,
COLORMATRIX,
VERTEXPROGRAM,
FRAGMENTPROGRAM,
POINTSPRITE,
PROGRAM,
CLAMPCOLOR,
HINT,
VALIDATOR,
VIEWMATRIXEXTRACTOR,
OSGNV_PARAMETER_BLOCK,
OSGNVEXT_TEXTURE_SHADER,
OSGNVEXT_VERTEX_PROGRAM,
OSGNVEXT_REGISTER_COMBINERS,
OSGNVCG_PROGRAM,
OSGNVSLANG_PROGRAM,
OSGNVPARSE_PROGRAM_PARSER,
UNIFORMBUFFERBINDING,
TRANSFORMFEEDBACKBUFFERBINDING
} |
typedef GLenum | GLMode |
typedef unsigned int | GLModeValue |
typedef unsigned int | OverrideValue |
typedef std::pair< Type,
unsigned int > | TypeMemberPair |
typedef std::vector< StateSet * > | ParentList |
typedef osg::StateAttributeCallback | Callback |
enum | DataVariance { DYNAMIC,
STATIC,
UNSPECIFIED
} |
Public Member Functions |
| TextureCubeMap () |
| TextureCubeMap (const TextureCubeMap &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| META_StateAttribute (osg, TextureCubeMap, TEXTURE) |
virtual int | compare (const StateAttribute &rhs) const |
virtual GLenum | getTextureTarget () const |
virtual void | setImage (unsigned int face, Image *image) |
virtual Image * | getImage (unsigned int face) |
virtual const Image * | getImage (unsigned int face) const |
virtual unsigned int | getNumImages () const |
unsigned int & | getModifiedCount (unsigned int face, unsigned int contextID) const |
void | setTextureSize (int width, int height) const |
void | setTextureWidth (int width) |
void | setTextureHeight (int height) |
virtual int | getTextureWidth () const |
virtual int | getTextureHeight () const |
virtual int | getTextureDepth () const |
void | setSubloadCallback (SubloadCallback *cb) |
SubloadCallback * | getSubloadCallback () |
const SubloadCallback * | getSubloadCallback () const |
void | setNumMipmapLevels (unsigned int num) const |
unsigned int | getNumMipmapLevels () const |
void | copyTexSubImageCubeMap (State &state, int face, int xoffset, int yoffset, int x, int y, int width, int height) |
virtual void | apply (State &state) const |
| Texture () |
| Texture (const Texture &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
virtual osg::Object * | cloneType () const =0 |
virtual osg::Object * | clone (const CopyOp ©op) const =0 |
virtual bool | isSameKindAs (const osg::Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual Texture * | asTexture () |
virtual const Texture * | asTexture () const |
virtual Type | getType () const |
virtual bool | isTextureAttribute () const |
virtual bool | getModeUsage (StateAttribute::ModeUsage &usage) const |
void | setWrap (WrapParameter which, WrapMode wrap) |
WrapMode | getWrap (WrapParameter which) const |
void | setBorderColor (const Vec4d &color) |
const Vec4d & | getBorderColor () const |
void | setBorderWidth (GLint width) |
GLint | getBorderWidth () const |
void | setFilter (FilterParameter which, FilterMode filter) |
FilterMode | getFilter (FilterParameter which) const |
void | setMaxAnisotropy (float anis) |
float | getMaxAnisotropy () const |
void | setUseHardwareMipMapGeneration (bool useHardwareMipMapGeneration) |
bool | getUseHardwareMipMapGeneration () const |
void | setUnRefImageDataAfterApply (bool flag) |
bool | getUnRefImageDataAfterApply () const |
void | setClientStorageHint (bool flag) |
bool | getClientStorageHint () const |
void | setResizeNonPowerOfTwoHint (bool flag) |
bool | getResizeNonPowerOfTwoHint () const |
void | setInternalFormatMode (InternalFormatMode mode) |
InternalFormatMode | getInternalFormatMode () const |
void | setInternalFormat (GLint internalFormat) |
GLint | getInternalFormat () const |
bool | isCompressedInternalFormat () const |
void | setSourceFormat (GLenum sourceFormat) |
GLenum | getSourceFormat () const |
void | setSourceType (GLenum sourceType) |
GLenum | getSourceType () const |
InternalFormatType | getInternalFormatType () const |
TextureObject * | getTextureObject (unsigned int contextID) const |
void | setTextureObject (unsigned int contextID, TextureObject *to) |
void | dirtyTextureObject () |
bool | areAllTextureObjectsLoaded () const |
unsigned int & | getTextureParameterDirty (unsigned int contextID) const |
void | dirtyTextureParameters () |
void | allocateMipmapLevels () |
void | setShadowComparison (bool flag) |
bool | getShadowComparison () const |
void | setShadowCompareFunc (ShadowCompareFunc func) |
ShadowCompareFunc | getShadowCompareFunc () const |
void | setShadowTextureMode (ShadowTextureMode mode) |
ShadowTextureMode | getShadowTextureMode () const |
void | setShadowAmbient (float shadow_ambient) |
float | getShadowAmbient () const |
void | setReadPBuffer (GraphicsContext *context) |
GraphicsContext * | getReadPBuffer () |
const GraphicsContext * | getReadPBuffer () const |
virtual void | compileGLObjects (State &state) const |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
virtual void | releaseGLObjects (State *state=0) const |
void | applyTexImage2D_load (State &state, GLenum target, const Image *image, GLsizei width, GLsizei height, GLsizei numMipmapLevels) const |
void | applyTexImage2D_subload (State &state, GLenum target, const Image *image, GLsizei width, GLsizei height, GLint inInternalFormat, GLsizei numMipmapLevels) const |
| StateAttribute () |
| StateAttribute (const StateAttribute &sa, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
virtual unsigned int | getMember () const |
TypeMemberPair | getTypeMemberPair () const |
bool | operator< (const StateAttribute &rhs) const |
bool | operator== (const StateAttribute &rhs) const |
bool | operator!= (const StateAttribute &rhs) const |
const ParentList & | getParents () const |
StateSet * | getParent (unsigned int i) |
const StateSet * | getParent (unsigned int i) const |
unsigned int | getNumParents () const |
void | setShaderComponent (ShaderComponent *sc) |
ShaderComponent * | getShaderComponent () |
const ShaderComponent * | getShaderComponent () const |
virtual bool | checkValidityOfAssociatedModes (osg::State &) const |
void | setUpdateCallback (StateAttributeCallback *uc) |
StateAttributeCallback * | getUpdateCallback () |
const StateAttributeCallback * | getUpdateCallback () const |
void | setEventCallback (StateAttributeCallback *ec) |
StateAttributeCallback * | getEventCallback () |
const StateAttributeCallback * | getEventCallback () const |
| Object () |
| Object (bool threadSafeRefUnref) |
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > |
void | setUserValue (const std::string &name, const T &value) |
| Referenced () |
| Referenced (bool threadSafeRefUnref) |
| Referenced (const Referenced &) |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Static Public Member Functions |
static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
static void | setExtensions (unsigned int contextID, Extensions *extensions) |
static bool | isCompressedInternalFormat (GLint internalFormat) |
static void | getCompressedSize (GLenum internalFormat, GLint width, GLint height, GLint depth, GLint &blockSize, GLint &size) |
static osg::ref_ptr
< Texture::TextureObjectManager > & | getTextureObjectManager (unsigned int contextID) |
static TextureObject * | generateTextureObject (const Texture *texture, unsigned int contextID, GLenum target) |
static TextureObject * | generateTextureObject (const Texture *texture, unsigned int contextID, GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border) |
static void | deleteAllTextureObjects (unsigned int contextID) |
static void | discardAllTextureObjects (unsigned int contextID) |
static void | flushAllDeletedTextureObjects (unsigned int contextID) |
static void | discardAllDeletedTextureObjects (unsigned int contextID) |
static void | flushDeletedTextureObjects (unsigned int contextID, double currentTime, double &availableTime) |
static void | releaseTextureObject (unsigned int contextID, TextureObject *to) |
TextureCubeMap state class which encapsulates OpenGL texture cubemap functionality.