The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Attributes | List of all members
GPU_Image Struct Reference

#include <SDL_gpu.h>

Public Attributes

struct GPU_Rendererrenderer
 
GPU_Targettarget
 
Uint16 w
 
Uint16 h
 
GPU_FormatEnum format
 
int num_layers
 
int bytes_per_pixel
 
Uint32 texture_w
 
Uint32 texture_h
 
Uint8 has_mipmaps
 
SDL_Color color
 
Uint8 use_blending
 
GPU_BlendMode blend_mode
 
GPU_FilterEnum filter_mode
 
GPU_SnapEnum snap_mode
 
GPU_WrapEnum wrap_mode_x
 
GPU_WrapEnum wrap_mode_y
 
voiddata
 
int refcount
 
Uint8 is_alias
 

Detailed Description

Image object for containing pixel/texture data. A GPU_Image can be created with GPU_CreateImage(), GPU_LoadImage(), GPU_CopyImage(), or GPU_CopyImageFromSurface(). Free the memory with GPU_FreeImage() when you're done.

See also
GPU_CreateImage()
GPU_LoadImage()
GPU_CopyImage()
GPU_CopyImageFromSurface()
GPU_Target

Definition at line 174 of file SDL_gpu.h.

Member Data Documentation

GPU_BlendMode GPU_Image::blend_mode
int GPU_Image::bytes_per_pixel
SDL_Color GPU_Image::color
void* GPU_Image::data
GPU_FilterEnum GPU_Image::filter_mode

Definition at line 188 of file SDL_gpu.h.

Referenced by CopyImage(), CreateUninitializedImage(), and SetImageFilter().

GPU_FormatEnum GPU_Image::format

Definition at line 179 of file SDL_gpu.h.

Referenced by CopyImage(), CreateUninitializedImage(), and getRawImageData().

Uint16 GPU_Image::h
Uint8 GPU_Image::has_mipmaps

Definition at line 183 of file SDL_gpu.h.

Referenced by CopyImage(), CreateUninitializedImage(), GenerateMipmaps(), and SetImageFilter().

Uint8 GPU_Image::is_alias

Definition at line 195 of file SDL_gpu.h.

Referenced by CreateAliasImage(), and CreateUninitializedImage().

int GPU_Image::num_layers

Definition at line 180 of file SDL_gpu.h.

Referenced by CreateUninitializedImage().

int GPU_Image::refcount
struct GPU_Renderer* GPU_Image::renderer
GPU_SnapEnum GPU_Image::snap_mode
GPU_Target* GPU_Image::target
Uint32 GPU_Image::texture_h
Uint32 GPU_Image::texture_w
Uint8 GPU_Image::use_blending
Uint16 GPU_Image::w
GPU_WrapEnum GPU_Image::wrap_mode_x

Definition at line 190 of file SDL_gpu.h.

Referenced by CopyImage(), CreateUninitializedImage(), and SetWrapMode().

GPU_WrapEnum GPU_Image::wrap_mode_y

Definition at line 191 of file SDL_gpu.h.

Referenced by CopyImage(), CreateUninitializedImage(), and SetWrapMode().


The documentation for this struct was generated from the following file: