caLib_util.graphics

This module provides classes used to display graphics. It builds uppon SDL2 and if you'd rather use sdl it's functions can be called directly by imporrting like this: import caLit_util.graphics.derelict.sdl2.sdl

Public Imports

derelict.sdl2.sdl
public import derelict.sdl2.sdl;
Undocumented in source.

Members

Classes

Texture
class Texture

A class representing a texture. A texture contains the pixeldata that can be rendered to its associated Window.

Window
class Window

A class representing a window

Functions

createRGBSurfaceFromTexture
SDL_Surface* createRGBSurfaceFromTexture(Texture texture)

Creates a SDL_Surface from a Texture.

saveTextureAsBmp
void saveTextureAsBmp(Texture texture, string path)

Saves a Texture as a bitmap picture

Meta