OpenSceneGraph 3.6.5
Image File Reference
#include <osg/BufferObject>
#include <osg/Vec2>
#include <osg/Vec3>
#include <osg/Vec3i>
#include <osg/Vec4>
#include <osg/FrameStamp>
#include <osg/StateAttribute>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  osg::Image
 Image class for encapsulating the storage texture image data. More...
class  osg::Image::DataIterator
 Convenience class for assisting the copying of image data when the image data isn't contiguous. More...
struct  osg::Image::UpdateCallback
 Convenience update callback class that can be attached to a StateAttribute (such as Textures) to ensure that the Image::update(NodeVisitor*) method is called during the update traversal. More...
class  osg::Image::DimensionsChangedCallback

Namespaces

namespace  osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.

Macros

#define OSG_IMAGE   1
#define GL_BGR   0x80E0
#define GL_BGRA   0x80E1
#define GL_UNSIGNED_BYTE_3_3_2   0x8032
#define GL_UNSIGNED_BYTE_2_3_3_REV   0x8362
#define GL_UNSIGNED_SHORT_5_6_5   0x8363
#define GL_UNSIGNED_SHORT_5_6_5_REV   0x8364
#define GL_UNSIGNED_SHORT_4_4_4_4   0x8033
#define GL_UNSIGNED_SHORT_4_4_4_4_REV   0x8365
#define GL_UNSIGNED_SHORT_5_5_5_1   0x8034
#define GL_UNSIGNED_SHORT_1_5_5_5_REV   0x8366
#define GL_UNSIGNED_INT_8_8_8_8   0x8035
#define GL_UNSIGNED_INT_8_8_8_8_REV   0x8367
#define GL_UNSIGNED_INT_10_10_10_2   0x8036
#define GL_UNSIGNED_INT_2_10_10_10_REV   0x8368
#define GL_COMPRESSED_ALPHA   0x84E9
#define GL_COMPRESSED_LUMINANCE   0x84EA
#define GL_COMPRESSED_LUMINANCE_ALPHA   0x84EB
#define GL_COMPRESSED_INTENSITY   0x84EC
#define GL_COMPRESSED_RGB   0x84ED
#define GL_COMPRESSED_RGBA   0x84EE
#define GL_ABGR_EXT   0x8000
#define GL_PACK_SKIP_IMAGES   0x806B
#define GL_PACK_IMAGE_HEIGHT   0x806C
#define GL_UNPACK_SKIP_IMAGES   0x806D
#define GL_UNPACK_IMAGE_HEIGHT   0x806E
#define GL_ETC1_RGB8_OES   0x8D64
#define GL_COMPRESSED_RGB8_ETC2   0x9274
#define GL_COMPRESSED_SRGB8_ETC2   0x9275
#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2   0x9276
#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2   0x9277
#define GL_COMPRESSED_RGBA8_ETC2_EAC   0x9278
#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC   0x9279
#define GL_COMPRESSED_R11_EAC   0x9270
#define GL_COMPRESSED_SIGNED_R11_EAC   0x9271
#define GL_COMPRESSED_RG11_EAC   0x9272
#define GL_COMPRESSED_SIGNED_RG11_EAC   0x9273
#define GL_KHR_texture_compression_astc_hdr   1
#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0
#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1
#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2
#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3
#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4
#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5
#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6
#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7
#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR   0x93B8
#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR   0x93B9
#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR   0x93BA
#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR   0x93BB
#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR   0x93BC
#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR   0x93BD
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR   0x93D0
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR   0x93D1
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR   0x93D2
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR   0x93D3
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR   0x93D4
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR   0x93D5
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR   0x93D6
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR   0x93D7
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR   0x93D8
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR   0x93D9
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR   0x93DA
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR   0x93DB
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR   0x93DC
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR   0x93DD
#define GL_DEPTH_COMPONENT   0x1902
#define GL_DEPTH_COMPONENT16   0x81A5
#define GL_DEPTH_COMPONENT24   0x81A6
#define GL_DEPTH_COMPONENT32   0x81A7
#define GL_DEPTH_COMPONENT32F   0x8CAC
#define GL_DEPTH_COMPONENT32F_NV   0x8DAB

Functions

OSG_EXPORT Geodeosg::createGeodeForImage (Image *image)
 Convenience function to be used by image loaders to generate a valid geode to return for readNode().
template<class T>
Geodeosg::createGeodeForImage (const ref_ptr< T > &image)
OSG_EXPORT Geodeosg::createGeodeForImage (Image *image, float s, float t)
 Convenience function to be used by image loaders to generate a valid geode to return for readNode().
template<class T>
Geodeosg::createGeodeForImage (const ref_ptr< T > &image, float s, float t)

Macro Definition Documentation

◆ GL_ABGR_EXT

#define GL_ABGR_EXT   0x8000

◆ GL_BGR

#define GL_BGR   0x80E0

Referenced by osg::_modifyRow(), and osg::_readRow().

◆ GL_BGRA

#define GL_BGRA   0x80E1

Referenced by osg::_modifyRow(), and osg::_readRow().

◆ GL_COMPRESSED_ALPHA

#define GL_COMPRESSED_ALPHA   0x84E9

◆ GL_COMPRESSED_INTENSITY

#define GL_COMPRESSED_INTENSITY   0x84EC

◆ GL_COMPRESSED_LUMINANCE

#define GL_COMPRESSED_LUMINANCE   0x84EA

◆ GL_COMPRESSED_LUMINANCE_ALPHA

#define GL_COMPRESSED_LUMINANCE_ALPHA   0x84EB

◆ GL_COMPRESSED_R11_EAC

#define GL_COMPRESSED_R11_EAC   0x9270

◆ GL_COMPRESSED_RG11_EAC

#define GL_COMPRESSED_RG11_EAC   0x9272

◆ GL_COMPRESSED_RGB

#define GL_COMPRESSED_RGB   0x84ED

◆ GL_COMPRESSED_RGB8_ETC2

#define GL_COMPRESSED_RGB8_ETC2   0x9274

◆ GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2

#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2   0x9276

◆ GL_COMPRESSED_RGBA

#define GL_COMPRESSED_RGBA   0x84EE

◆ GL_COMPRESSED_RGBA8_ETC2_EAC

#define GL_COMPRESSED_RGBA8_ETC2_EAC   0x9278

◆ GL_COMPRESSED_RGBA_ASTC_10x10_KHR

#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR   0x93BB

◆ GL_COMPRESSED_RGBA_ASTC_10x5_KHR

#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR   0x93B8

◆ GL_COMPRESSED_RGBA_ASTC_10x6_KHR

#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR   0x93B9

◆ GL_COMPRESSED_RGBA_ASTC_10x8_KHR

#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR   0x93BA

◆ GL_COMPRESSED_RGBA_ASTC_12x10_KHR

#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR   0x93BC

◆ GL_COMPRESSED_RGBA_ASTC_12x12_KHR

#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR   0x93BD

◆ GL_COMPRESSED_RGBA_ASTC_4x4_KHR

#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0

◆ GL_COMPRESSED_RGBA_ASTC_5x4_KHR

#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1

◆ GL_COMPRESSED_RGBA_ASTC_5x5_KHR

#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2

◆ GL_COMPRESSED_RGBA_ASTC_6x5_KHR

#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3

◆ GL_COMPRESSED_RGBA_ASTC_6x6_KHR

#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4

◆ GL_COMPRESSED_RGBA_ASTC_8x5_KHR

#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5

◆ GL_COMPRESSED_RGBA_ASTC_8x6_KHR

#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6

◆ GL_COMPRESSED_RGBA_ASTC_8x8_KHR

#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7

◆ GL_COMPRESSED_SIGNED_R11_EAC

#define GL_COMPRESSED_SIGNED_R11_EAC   0x9271

◆ GL_COMPRESSED_SIGNED_RG11_EAC

#define GL_COMPRESSED_SIGNED_RG11_EAC   0x9273

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR   0x93DB

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR   0x93D8

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR   0x93D9

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR   0x93DA

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR   0x93DC

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR   0x93DD

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR   0x93D0

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR   0x93D1

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR   0x93D2

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR   0x93D3

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR   0x93D4

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR   0x93D5

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR   0x93D6

◆ GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR

#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR   0x93D7

◆ GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC

#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC   0x9279

◆ GL_COMPRESSED_SRGB8_ETC2

#define GL_COMPRESSED_SRGB8_ETC2   0x9275

◆ GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2

#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2   0x9277

◆ GL_DEPTH_COMPONENT

#define GL_DEPTH_COMPONENT   0x1902

◆ GL_DEPTH_COMPONENT16

#define GL_DEPTH_COMPONENT16   0x81A5

◆ GL_DEPTH_COMPONENT24

#define GL_DEPTH_COMPONENT24   0x81A6

◆ GL_DEPTH_COMPONENT32

#define GL_DEPTH_COMPONENT32   0x81A7

◆ GL_DEPTH_COMPONENT32F

#define GL_DEPTH_COMPONENT32F   0x8CAC

◆ GL_DEPTH_COMPONENT32F_NV

#define GL_DEPTH_COMPONENT32F_NV   0x8DAB

◆ GL_ETC1_RGB8_OES

#define GL_ETC1_RGB8_OES   0x8D64

◆ GL_KHR_texture_compression_astc_hdr

#define GL_KHR_texture_compression_astc_hdr   1

◆ GL_PACK_IMAGE_HEIGHT

#define GL_PACK_IMAGE_HEIGHT   0x806C

◆ GL_PACK_SKIP_IMAGES

#define GL_PACK_SKIP_IMAGES   0x806B

◆ GL_UNPACK_IMAGE_HEIGHT

#define GL_UNPACK_IMAGE_HEIGHT   0x806E

◆ GL_UNPACK_SKIP_IMAGES

#define GL_UNPACK_SKIP_IMAGES   0x806D

◆ GL_UNSIGNED_BYTE_2_3_3_REV

#define GL_UNSIGNED_BYTE_2_3_3_REV   0x8362

◆ GL_UNSIGNED_BYTE_3_3_2

#define GL_UNSIGNED_BYTE_3_3_2   0x8032

◆ GL_UNSIGNED_INT_10_10_10_2

#define GL_UNSIGNED_INT_10_10_10_2   0x8036

◆ GL_UNSIGNED_INT_2_10_10_10_REV

#define GL_UNSIGNED_INT_2_10_10_10_REV   0x8368

◆ GL_UNSIGNED_INT_8_8_8_8

#define GL_UNSIGNED_INT_8_8_8_8   0x8035

◆ GL_UNSIGNED_INT_8_8_8_8_REV

#define GL_UNSIGNED_INT_8_8_8_8_REV   0x8367

◆ GL_UNSIGNED_SHORT_1_5_5_5_REV

#define GL_UNSIGNED_SHORT_1_5_5_5_REV   0x8366

◆ GL_UNSIGNED_SHORT_4_4_4_4

#define GL_UNSIGNED_SHORT_4_4_4_4   0x8033

◆ GL_UNSIGNED_SHORT_4_4_4_4_REV

#define GL_UNSIGNED_SHORT_4_4_4_4_REV   0x8365

◆ GL_UNSIGNED_SHORT_5_5_5_1

#define GL_UNSIGNED_SHORT_5_5_5_1   0x8034

◆ GL_UNSIGNED_SHORT_5_6_5

#define GL_UNSIGNED_SHORT_5_6_5   0x8363

◆ GL_UNSIGNED_SHORT_5_6_5_REV

#define GL_UNSIGNED_SHORT_5_6_5_REV   0x8364

◆ OSG_IMAGE

#define OSG_IMAGE   1

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.