osg.Image¶
-
class
osg.
Image
¶ Represents: c++ class Wraps: osg::Image Bases: osg.BufferData
Constructors:
-
osg.
Image
()¶
Methods:
-
:
setFileName
(std.string fileName)¶ -
Параметры: fileName ( std.string
) –
-
:
getFileName
()¶ -
Тип результата: std.string
-
:
computeNumComponents
()¶ -
Тип результата: int
-
:
width
()¶ -
Тип результата: int
-
:
height
()¶ -
Тип результата: int
-
:
depth
()¶ -
Тип результата: int
-
:
scaleImage
(int s, int t, int r)¶ -
Параметры: - s (
int
) – - t (
int
) – - r (
int
) –
- s (
-
:
setOrigin
(osg.Image.Origin origin)¶ -
Параметры: origin ( osg.Image.Origin
) –
-
:
getOrigin
()¶ -
Тип результата: osg.Image.Origin
-
:
setPixelFormat
(GLenum.Value format)¶ -
Параметры: format ( GLenum.Value
) –
-
:
getPixelFormat
()¶ -
Тип результата: GLenum.Value
-
:
data
()¶ -
Тип результата: uint64
-
:
setDataType
(GLenum.Value format)¶ -
Параметры: format ( GLenum.Value
) –
-
:
getDataType
()¶ -
Тип результата: GLenum.Value
-
:
setInternalTextureFormat
(GLenum.Value format)¶ -
Параметры: format ( GLenum.Value
) –
-
:
getInternalTextureFormat
()¶ -
Тип результата: GLenum.Value
-
:
getColor
(double s, double t) -
Параметры: - s (
double
) – - t (
double
) –
Тип результата: - s (
-
:
getColor
(double s, double t, double r) -
Параметры: - s (
double
) – - t (
double
) – - r (
double
) –
Тип результата: - s (
-
:
setColor
(osg.Vec4 color, double s, double t) -
Параметры: - color (
osg.Vec4
) – - s (
double
) – - t (
double
) –
- color (
-
:
setColor
(osg.Vec4 color, double s, double t, double r) -
Параметры: - color (
osg.Vec4
) – - s (
double
) – - t (
double
) – - r (
double
) –
- color (
-
:
flipHorizontal
()¶
-
:
flipVertical
()¶
-
:
supportsTextureSubloading
()¶ -
Тип результата: bool
-
:
isImageTranslucent
()¶ -
Тип результата: bool
-
:
setPixelBufferObject
(osg.PixelBufferObject buffer)¶ -
Параметры: buffer ( osg.PixelBufferObject
) –
-
:
getPixelBufferObject
()¶ -
Тип результата: osg.PixelBufferObject
-
:
requiresUpdateCall
()¶ -
Тип результата: bool
-
:
setAllocationMode
(osg.Image.AllocationMode mode)¶ -
Параметры: mode ( osg.Image.AllocationMode
) –
-
:
getAllocationMode
()¶ -
Тип результата: osg.Image.AllocationMode
-
:
allocateImage
(int s, int t, int r, GLenum.Value pixelFormat, GLenum.Value type, int packing)¶ -
Параметры: - s (
int
) – - t (
int
) – - r (
int
) – - pixelFormat (
GLenum.Value
) – - type (
GLenum.Value
) – - packing (
int
) –
- s (
-
:
allocateImage
(int s, int t, int r, GLenum.Value pixelFormat, GLenum.Value type) -
Параметры: - s (
int
) – - t (
int
) – - r (
int
) – - pixelFormat (
GLenum.Value
) – - type (
GLenum.Value
) –
- s (
-
:
readPixels
(int x, int y, int width, int height, GLenum.Value pixelFormat, GLenum.Value type)¶ -
Параметры: - x (
int
) – - y (
int
) – - width (
int
) – - height (
int
) – - pixelFormat (
GLenum.Value
) – - type (
GLenum.Value
) –
- x (
-