Top | ![]() |
![]() |
![]() |
![]() |
RetroPixdataRetroPixdata — A structure holding the video output from a RetroCore |
The RetroPixdata structure holds the internal representation of a
RetroCore's video output. To use the image, either convert it to a
GdkPixbuf via retro_pixdata_to_pixbuf()
or load it as an OpenGL texture via
retro_pixdata_load_gl_texture()
.
The generated GdkPixbuf will store the intended aspect-ratio, you can access
it via retro_pixbuf_get_aspect_ratio()
.
RetroPixdata *
retro_pixdata_copy (RetroPixdata *self
);
Copies self
into a new RetroPixdata.
void
retro_pixdata_free (RetroPixdata *self
);
Frees the given RetroPixdata object.
gint
retro_pixdata_get_width (RetroPixdata *self
);
Gets the width of self
.
gint
retro_pixdata_get_height (RetroPixdata *self
);
Gets the height of self
.
gfloat
retro_pixdata_get_aspect_ratio (RetroPixdata *self
);
Gets the aspect ratio the video should be rendered with.
GdkPixbuf *
retro_pixdata_to_pixbuf (RetroPixdata *self
);
Creates a new GdkPixbuf from self
.
The GdkPixbuf stores the intended aspect-ratio, you can access it via
retro_pixbuf_get_aspect_ratio()
.
gboolean
retro_pixdata_load_gl_texture (RetroPixdata *self
);
Loads an OpenGL texture from self
.