SDL_gpu  0.11.0
A hardware-accelerated, cross-platform 2D graphics API
Data Fields
GPU_Image Struct Reference

#include <SDL_gpu.h>

Data Fields

struct GPU_Rendererrenderer
 
GPU_Targetcontext_target
 
GPU_Targettarget
 
Uint16 w
 
Uint16 h
 
GPU_bool using_virtual_resolution
 
GPU_FormatEnum format
 
int num_layers
 
int bytes_per_pixel
 
Uint16 base_w
 
Uint16 base_h
 
Uint16 texture_w
 
Uint16 texture_h
 
GPU_bool has_mipmaps
 
float anchor_x
 
float anchor_y
 
SDL_Color color
 
GPU_bool use_blending
 
GPU_BlendMode blend_mode
 
GPU_FilterEnum filter_mode
 
GPU_SnapEnum snap_mode
 
GPU_WrapEnum wrap_mode_x
 
GPU_WrapEnum wrap_mode_y
 
void * data
 
int refcount
 
GPU_bool 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 266 of file SDL_gpu.h.

Field Documentation

◆ anchor_x

float GPU_Image::anchor_x

Definition at line 280 of file SDL_gpu.h.

◆ anchor_y

float GPU_Image::anchor_y

Definition at line 281 of file SDL_gpu.h.

◆ base_h

Uint16 GPU_Image::base_h

Definition at line 276 of file SDL_gpu.h.

◆ base_w

Uint16 GPU_Image::base_w

Definition at line 276 of file SDL_gpu.h.

◆ blend_mode

GPU_BlendMode GPU_Image::blend_mode

Definition at line 285 of file SDL_gpu.h.

◆ bytes_per_pixel

int GPU_Image::bytes_per_pixel

Definition at line 275 of file SDL_gpu.h.

◆ color

SDL_Color GPU_Image::color

Definition at line 283 of file SDL_gpu.h.

◆ context_target

GPU_Target* GPU_Image::context_target

Definition at line 269 of file SDL_gpu.h.

◆ data

void* GPU_Image::data

Definition at line 291 of file SDL_gpu.h.

◆ filter_mode

GPU_FilterEnum GPU_Image::filter_mode

Definition at line 286 of file SDL_gpu.h.

◆ format

GPU_FormatEnum GPU_Image::format

Definition at line 273 of file SDL_gpu.h.

◆ h

Uint16 GPU_Image::h

Definition at line 271 of file SDL_gpu.h.

◆ has_mipmaps

GPU_bool GPU_Image::has_mipmaps

Definition at line 278 of file SDL_gpu.h.

◆ is_alias

GPU_bool GPU_Image::is_alias

Definition at line 293 of file SDL_gpu.h.

◆ num_layers

int GPU_Image::num_layers

Definition at line 274 of file SDL_gpu.h.

◆ refcount

int GPU_Image::refcount

Definition at line 292 of file SDL_gpu.h.

◆ renderer

struct GPU_Renderer* GPU_Image::renderer

Definition at line 268 of file SDL_gpu.h.

◆ snap_mode

GPU_SnapEnum GPU_Image::snap_mode

Definition at line 287 of file SDL_gpu.h.

◆ target

GPU_Target* GPU_Image::target

Definition at line 270 of file SDL_gpu.h.

◆ texture_h

Uint16 GPU_Image::texture_h

Definition at line 277 of file SDL_gpu.h.

◆ texture_w

Uint16 GPU_Image::texture_w

Definition at line 277 of file SDL_gpu.h.

◆ use_blending

GPU_bool GPU_Image::use_blending

Definition at line 284 of file SDL_gpu.h.

◆ using_virtual_resolution

GPU_bool GPU_Image::using_virtual_resolution

Definition at line 272 of file SDL_gpu.h.

◆ w

Uint16 GPU_Image::w

Definition at line 271 of file SDL_gpu.h.

◆ wrap_mode_x

GPU_WrapEnum GPU_Image::wrap_mode_x

Definition at line 288 of file SDL_gpu.h.

◆ wrap_mode_y

GPU_WrapEnum GPU_Image::wrap_mode_y

Definition at line 289 of file SDL_gpu.h.


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