Removed last of the uint references.

This commit is contained in:
Robert Osfield
2003-02-14 11:41:52 +00:00
parent 319e84ceed
commit bd506b53da
8 changed files with 42 additions and 42 deletions

View File

@@ -261,11 +261,11 @@ class SG_EXPORT Drawable : public Object
* OpenGL display list to cached until they can be deleted
* by the OpenGL context in which they were created, specified
* by contextID.*/
static void deleteDisplayList(uint contextID,uint globj);
static void deleteDisplayList(unsigned int contextID,GLuint globj);
/** flush all the cached display list which need to be deleted
* in the OpenGL context related to contextID.*/
static void flushDeletedDisplayLists(uint contextID);
static void flushDeletedDisplayLists(unsigned int contextID);
enum AttributeType
@@ -401,7 +401,7 @@ class SG_EXPORT Drawable : public Object
bool _supportsDisplayList;
bool _useDisplayList;
typedef osg::buffered_value<uint> GLObjectList;
typedef osg::buffered_value<GLuint> GLObjectList;
mutable GLObjectList _globjList;
ref_ptr<UpdateCallback> _updateCallback;
@@ -418,10 +418,10 @@ inline void Drawable::draw(State& state) const
// get the contextID (user defined ID of 0 upwards) for the
// current OpenGL context.
uint contextID = state.getContextID();
unsigned int contextID = state.getContextID();
// get the globj for the current contextID.
uint& globj = _globjList[contextID];
GLuint& globj = _globjList[contextID];
// call the globj if already set otherwise compile and execute.
if( globj != 0 )

View File

@@ -90,7 +90,7 @@ class SG_EXPORT GeoSet : public Drawable
struct SG_EXPORT IndexPointer
{
mutable uint _size;
mutable unsigned int _size;
bool _is_ushort;
union _TPtr
{
@@ -124,7 +124,7 @@ class SG_EXPORT GeoSet : public Drawable
_ptr._ushort = (GLushort*)0;
}
inline void set(uint size,GLushort* data)
inline void set(unsigned int size,GLushort* data)
{
_size = size;
_is_ushort = true;
@@ -132,24 +132,24 @@ class SG_EXPORT GeoSet : public Drawable
}
void set(uint size,GLuint* data)
void set(unsigned int size,GLuint* data)
{
_size = size;
_is_ushort = false;
_ptr._uint = data;
}
inline uint maxIndex() const
inline unsigned int maxIndex() const
{
uint max = 0;
unsigned int max = 0;
if (_is_ushort)
{
for(uint ai = 0; ai < _size; ai++ )
for(unsigned int ai = 0; ai < _size; ai++ )
if( _ptr._ushort[ai] > max ) max = _ptr._ushort[ai];
}
else
{
for(uint ai = 0; ai < _size; ai++ )
for(unsigned int ai = 0; ai < _size; ai++ )
if( _ptr._uint[ai] > max ) max = _ptr._uint[ai];
}
return max;
@@ -210,9 +210,9 @@ class SG_EXPORT GeoSet : public Drawable
To reduce memory footprint and bandwidth for small datasets it is
recommended the ushort indices are used instead of unit indices.*/
void setCoords( Vec3 *cp, GLushort *ci );
/** set the coords (i.e the geometry) and uint indices of the geoset.
/** set the coords (i.e the geometry) and unsigned int indices of the geoset.
Unless your data set exceeds 65536 indices prefer ushort indices
over uint indices, only use this unit indices version if necessary.*/
over unsigned int indices, only use this unit indices version if necessary.*/
void setCoords( Vec3 *cp, GLuint *ci );
/** set the coords (i.e the geometry) and indices of the geoset.*/
void setCoords( Vec3 *cp, IndexPointer& ip );

View File

@@ -77,7 +77,7 @@ class SG_EXPORT Stencil : public StateAttribute
ALWAYS = GL_ALWAYS
};
inline void setFunction(Function func,int ref,uint mask)
inline void setFunction(Function func,int ref,unsigned int mask)
{
_func = func;
_funcRef = ref;
@@ -88,7 +88,7 @@ class SG_EXPORT Stencil : public StateAttribute
inline int getFunctionRef() const { return _funcRef; }
inline uint getFunctionMask() const { return _funcMask; }
inline unsigned int getFunctionMask() const { return _funcMask; }
enum Operation
@@ -125,9 +125,9 @@ class SG_EXPORT Stencil : public StateAttribute
inline Operation getStencilPassAndDepthPassOperation() const { return _zpass; }
inline void setWriteMask(uint mask) { _writeMask = mask; }
inline void setWriteMask(unsigned int mask) { _writeMask = mask; }
inline uint getWriteMask() const { return _writeMask; }
inline unsigned int getWriteMask() const { return _writeMask; }
virtual void apply(State& state) const;
@@ -138,13 +138,13 @@ class SG_EXPORT Stencil : public StateAttribute
Function _func;
int _funcRef;
uint _funcMask;
unsigned int _funcMask;
Operation _sfail;
Operation _zfail;
Operation _zpass;
uint _writeMask;
unsigned int _writeMask;
};

View File

@@ -146,12 +146,12 @@ class SG_EXPORT Texture3D : public Texture
* If 'createIfNotInitalized' is true then the Extensions object is
* automatically created. However, in this case the extension object
* only be created with the graphics context associated with ContextID..*/
static const Extensions* getExtensions(uint contextID,bool createIfNotInitalized);
static const Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized);
/** setExtensions allows users to override the extensions across graphics contexts.
* typically used when you have different extensions supported across graphics pipes
* but need to ensure that they all use the same low common denominator extensions.*/
static void setExtensions(uint contextID,Extensions* extensions);
static void setExtensions(unsigned int contextID,Extensions* extensions);
protected :

View File

@@ -134,12 +134,12 @@ class SG_EXPORT TextureCubeMap : public Texture
* If 'createIfNotInitalized' is true then the Extensions object is
* automatically created. However, in this case the extension object
* only be created with the graphics context associated with ContextID..*/
static const Extensions* getExtensions(uint contextID,bool createIfNotInitalized);
static const Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized);
/** setExtensions allows users to override the extensions across graphics contexts.
* typically used when you have different extensions supported across graphics pipes
* but need to ensure that they all use the same low common denominator extensions.*/
static void setExtensions(uint contextID,Extensions* extensions);
static void setExtensions(unsigned int contextID,Extensions* extensions);
protected :