Cogl.Texture2D – doc Reference Manual
Packages
doc
Cogl
Texture2D
Texture2D
Texture2D.from_bitmap
Texture2D.from_data
Texture2D.from_file
Texture2D.gl_new_from_foreign
Texture2D.with_size
Texture2D
Object Hierarchy:
Description:
public
class
Texture2D
:
Object
,
Texture
Namespace:
Cogl
Package:
doc
Content:
Creation methods:
protected
Texture2D
()
public
Texture2D.from_bitmap
(
Bitmap
bitmap)
Creates a low-level
Texture2D
texture based on data residing in a
Bitmap
.
public
Texture2D.from_data
(
Context
ctx,
int
width,
int
height,
PixelFormat
format,
int
rowstride,
uint8
data)
throws
Error
Creates a low-level
Texture2D
texture based on data residing in memory.
public
Texture2D.from_file
(
Context
ctx,
string
filename)
throws
Error
Creates a low-level
Texture2D
texture from an image file.
public
Texture2D.gl_new_from_foreign
(
Context
ctx,
uint
gl_handle,
int
width,
int
height,
PixelFormat
format)
Wraps an existing GL_TEXTURE_2D texture object as a
Texture2D
.
public
Texture2D.with_size
(
Context
ctx,
int
width,
int
height)
Creates a low-level
Texture2D
texture with a given
width
and
height
that your GPU can texture from directly.
Inherited Members:
All known members inherited from class Cogl.Object
value_set_object
All known members inherited from interface Cogl.Texture
allocate
get_components
get_data
get_gl_texture
get_height
get_max_waste
get_premultiplied
get_width
is_sliced
set_components
set_data
set_premultiplied
set_region
set_region_from_bitmap