Converted the instances of const built in types being returned from methods

and passed as paramters into straight forward non const built in types,
i.e. const bool foogbar(const int) becomes bool foobar(int).
This commit is contained in:
Robert Osfield
2002-09-02 12:31:35 +00:00
parent 52518673d1
commit 12226e4371
123 changed files with 850 additions and 841 deletions

View File

@@ -57,7 +57,7 @@ void DrawPixels::getSubImageDimensions(unsigned int& offsetX,unsigned int& offse
}
const bool DrawPixels::computeBound() const
bool DrawPixels::computeBound() const
{
// really needs to be dependant of view poistion and projection... will implement simple version right now.
_bbox.init();
@@ -83,11 +83,13 @@ void DrawPixels::drawImmediateMode(State&)
if (_useSubImage)
{
const GLvoid* pixels = _image->data();
const GLvoid* pixels = _image->data(_offsetX,_offsetY);
glPixelStorei(GL_PACK_ROW_LENGTH,_image->s());
glDrawPixels(_width,_height,
(GLenum)_image->getPixelFormat(),
(GLenum)_image->getDataType(),
pixels);
glPixelStorei(GL_PACK_ROW_LENGTH,0);
}
else
{