Btk
BtkTable Struct Reference

Renderer Interface Table. More...

#include <render.hpp>

Public Attributes

BtkRenderer *(* CreateRenderer )(SDL_Window *win, int index, Uint32 flags)
 Create a Renderer. More...
 
BtkTexture *(* CreateTexture )(BtkRenderer *, Uint32 fmt, int access, int w, int h)
 Create a texture in a Renderer. More...
 
BtkTexture *(* CreateTextureFrom )(BtkRenderer *, SDL_Surface *)
 
BtkTexture *(* LoadTextureFrom )(BtkRenderer *, SDL_RWops *)
 Load a texture directly into renderer. More...
 
void(* DestroyTexture )(BtkTexture *)
 Destroy a texture. More...
 
void(* DestroyRenderer )(BtkRenderer *)
 
void(* RenderPresent )(BtkRenderer *)
 
int(* RenderDrawRect )(BtkRenderer *, const BtkRect *)
 
int(* RenderDrawRects )(BtkRenderer *, const BtkRect *, int n)
 
int(* RenderDrawBox )(BtkRenderer *, const BtkRect *)
 
int(* RenderDrawBoxs )(BtkRenderer *, const BtkRect *, int n)
 
int(* RenderDrawLine )(BtkRenderer *, int x1, int y1, int x2, int y2)
 
int(* RenderDrawLines )(BtkRenderer *, const BtkVec2 *vec2s, int n)
 
int(* RenderDrawPoint )(BtkRenderer *, int x1, int y1)
 
int(* RenderDrawPoints )(BtkRenderer *, const BtkVec2 *points, int n)
 
int(* RenderSetDrawColor )(BtkRenderer *, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
 
int(* RenderGetDrawColor )(BtkRenderer *, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a)
 
void(* RenderGetClipRect )(BtkRenderer *, BtkRect *cliprect)
 
int(* RenderSetClipRect )(BtkRenderer *, const BtkRect *cliprect)
 
void(* RenderGetViewPort )(BtkRenderer *, BtkRect *viewport)
 
int(* RenderSetViewPort )(BtkRenderer *, const BtkRect *viewport)
 
int(* RenderCopy )(BtkRenderer *, BtkTexture *t, const BtkRect *src, const BtkRect *dst)
 
int(* RenderClear )(BtkRenderer *)
 
int(* QueryTexture )(BtkTexture *, Uint32 *fmt, int *access, int *w, int *h)
 
int(* UpdateTexture )(BtkTexture *, const BtkRect *rect, const void *pixels, int pitch)
 
int(* LockTexture )(BtkTexture *, const BtkRect *rect, void **pixels, int *pitch)
 
void(* UnlockTexture )(BtkTexture *)
 
int(* SetError )(const char *fmt,...)
 
const char *(* GetError )()
 

Detailed Description

Renderer Interface Table.

Member Data Documentation

◆ CreateRenderer

BtkRenderer*(* BtkTable::CreateRenderer) (SDL_Window *win, int index, Uint32 flags)

Create a Renderer.

Parameters
winThe SDL_Window
indexThe driver index (default -1)
flagsThe renderer flags
Returns
BtkRenderer*

◆ CreateTexture

BtkTexture*(* BtkTable::CreateTexture) (BtkRenderer *, Uint32 fmt, int access, int w, int h)

Create a texture in a Renderer.

◆ DestroyTexture

void(* BtkTable::DestroyTexture) (BtkTexture *)

Destroy a texture.

◆ LoadTextureFrom

BtkTexture*(* BtkTable::LoadTextureFrom) (BtkRenderer *, SDL_RWops *)

Load a texture directly into renderer.


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