14#ifndef OSG_TEXTURECUBEMAP
15#define OSG_TEXTURECUBEMAP 1
65 virtual bool isDirty(
unsigned int contextID)
const
#define GL_TEXTURE_CUBE_MAP
Definition Texture:193
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Implements a simple buffered value for values that need to be buffered on a per graphics context basi...
Definition buffered_value:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Image class for encapsulating the storage texture image data.
Definition Image:179
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
T * get() const
Definition ref_ptr:117
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Base class for state attributes.
Definition StateAttribute:77
@ TEXTURE
Definition StateAttribute:125
SubloadCallback * getSubloadCallback()
Definition TextureCubeMap:106
unsigned int & getModifiedCount(unsigned int face, unsigned int contextID) const
Definition TextureCubeMap:75
virtual int compare(const StateAttribute &rhs) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual unsigned int getNumImages() const
Get the number of images that can be assigned to the Texture.
Definition TextureCubeMap:61
unsigned int getNumMipmapLevels() const
Get the number of mip map levels the texture has been created with.
Definition TextureCubeMap:117
ImageModifiedCount _modifiedCount[6]
Definition TextureCubeMap:154
void setTextureHeight(int height)
Definition TextureCubeMap:91
virtual int getTextureDepth() const
Definition TextureCubeMap:95
void setTextureSize(int width, int height) const
Set the texture width and height.
Definition TextureCubeMap:84
virtual void setImage(unsigned int face, Image *image)
Set the texture image for specified face.
const SubloadCallback * getSubloadCallback() const
Definition TextureCubeMap:108
virtual void apply(State &state) const
On first apply (unless already compiled), create the mipmapped texture and bind it.
void setNumMipmapLevels(unsigned int num) const
Set the number of mip map levels the texture has been created with.
Definition TextureCubeMap:114
GLsizei _textureHeight
Definition TextureCubeMap:146
GLsizei _numMipmapLevels
Definition TextureCubeMap:149
virtual int getTextureHeight() const
Definition TextureCubeMap:94
TextureCubeMap(const TextureCubeMap &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
ref_ptr< SubloadCallback > _subloadCallback
Definition TextureCubeMap:151
void allocateMipmap(State &state) const
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function.
void setSubloadCallback(SubloadCallback *cb)
Definition TextureCubeMap:104
virtual void computeInternalFormat() const
void copyTexSubImageCubeMap(State &state, int face, int xoffset, int yoffset, int x, int y, int width, int height)
Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D.
GLsizei _textureWidth
Definition TextureCubeMap:146
virtual GLenum getTextureTarget() const
Definition TextureCubeMap:38
virtual ~TextureCubeMap()
META_StateAttribute(osg, TextureCubeMap, TEXTURE)
virtual bool isDirty(unsigned int contextID) const
return true if the texture image data has been modified and the associated GL texture object needs to...
Definition TextureCubeMap:65
virtual int getTextureWidth() const
Definition TextureCubeMap:93
Face
Definition TextureCubeMap:40
@ POSITIVE_X
Definition TextureCubeMap:41
@ NEGATIVE_Y
Definition TextureCubeMap:44
@ POSITIVE_Y
Definition TextureCubeMap:43
@ NEGATIVE_X
Definition TextureCubeMap:42
@ POSITIVE_Z
Definition TextureCubeMap:45
@ NEGATIVE_Z
Definition TextureCubeMap:46
ref_ptr< Image > _images[6]
Definition TextureCubeMap:143
virtual const Image * getImage(unsigned int face) const
Get the const texture image for specified face.
virtual Image * getImage(unsigned int face)
Get the texture image for specified face.
void setTextureWidth(int width)
Definition TextureCubeMap:90
void setImage(unsigned int face, const ref_ptr< T > &image)
Definition TextureCubeMap:52
buffered_value< unsigned int > ImageModifiedCount
Definition TextureCubeMap:153
Definition TextureCubeMap:98
virtual void subload(const TextureCubeMap &texture, State &state) const =0
virtual void load(const TextureCubeMap &texture, State &state) const =0
#define OSG_EXPORT
Definition Export:39