From Art Trevs, "Features of the patch are:
- Implementation of integer textures as in EXT_texture_integer - setBorderColor(Vec4) changed to setBorderColor(Vec4d) to pass double values as border color. (Probably we have to provide an overloading function to still support Vec4f ?) - new method Texture::getInternalFormatType() added. Gives information if the internal format normalized, float, signed integer or unsigned integer. Can help people to write better code ;-) " Futher changes to this submission by Robert Osfield, changed the dirty mipmap flag into a buffer_value<> vector to ensure safe handling of multiple contexts.
This commit is contained in:
@@ -196,6 +196,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D)
|
||||
__void__computeInternalFormat,
|
||||
"",
|
||||
"");
|
||||
I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state,
|
||||
Properties::VIRTUAL,
|
||||
Properties::CONST,
|
||||
__void__allocateMipmap__State_R1,
|
||||
"Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ",
|
||||
"");
|
||||
I_SimpleProperty(osg::Image *, Image,
|
||||
__Image_P1__getImage,
|
||||
__void__setImage__Image_P1);
|
||||
|
||||
Reference in New Issue
Block a user