zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_render_sw.c File Reference
#include "SDL_config.h"
#include "../SDL_sysrender.h"
#include "SDL_render_sw_c.h"
#include "SDL_hints.h"
#include "SDL_draw.h"
#include "SDL_blendfillrect.h"
#include "SDL_blendline.h"
#include "SDL_blendpoint.h"
#include "SDL_drawline.h"
#include "SDL_drawpoint.h"
#include "SDL_rotate.h"

Go to the source code of this file.

Functions

static int GetScaleQuality (void)
 
static SDL_SurfaceSW_ActivateRenderer (SDL_Renderer *renderer)
 
static SDL_RendererSW_CreateRenderer (SDL_Window *window, Uint32 flags)
 
SDL_RendererSW_CreateRendererForSurface (SDL_Surface *surface)
 
static int SW_CreateTexture (SDL_Renderer *renderer, SDL_Texture *texture)
 
static void SW_DestroyRenderer (SDL_Renderer *renderer)
 
static void SW_DestroyTexture (SDL_Renderer *renderer, SDL_Texture *texture)
 
static int SW_GetOutputSize (SDL_Renderer *renderer, int *w, int *h)
 
static int SW_LockTexture (SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *rect, void **pixels, int *pitch)
 
static int SW_RenderClear (SDL_Renderer *renderer)
 
static int SW_RenderCopy (SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_FRect *dstrect)
 
static int SW_RenderCopyEx (SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_FRect *dstrect, const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip)
 
static int SW_RenderDrawLines (SDL_Renderer *renderer, const SDL_FPoint *points, int count)
 
static int SW_RenderDrawPoints (SDL_Renderer *renderer, const SDL_FPoint *points, int count)
 
static int SW_RenderFillRects (SDL_Renderer *renderer, const SDL_FRect *rects, int count)
 
static void SW_RenderPresent (SDL_Renderer *renderer)
 
static int SW_RenderReadPixels (SDL_Renderer *renderer, const SDL_Rect *rect, Uint32 format, void *pixels, int pitch)
 
static int SW_SetRenderTarget (SDL_Renderer *renderer, SDL_Texture *texture)
 
static int SW_SetTextureAlphaMod (SDL_Renderer *renderer, SDL_Texture *texture)
 
static int SW_SetTextureBlendMode (SDL_Renderer *renderer, SDL_Texture *texture)
 
static int SW_SetTextureColorMod (SDL_Renderer *renderer, SDL_Texture *texture)
 
static void SW_UnlockTexture (SDL_Renderer *renderer, SDL_Texture *texture)
 
static int SW_UpdateClipRect (SDL_Renderer *renderer)
 
static int SW_UpdateTexture (SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *rect, const void *pixels, int pitch)
 
static int SW_UpdateViewport (SDL_Renderer *renderer)
 
static void SW_WindowEvent (SDL_Renderer *renderer, const SDL_WindowEvent *event)
 

Variables

SDL_RenderDriver SW_RenderDriver
 

Function Documentation

static int GetScaleQuality ( void  )
static

Definition at line 562 of file SDL_render_sw.c.

References SDL_GetHint(), SDL_HINT_RENDER_SCALE_QUALITY, and SDL_strcasecmp().

Referenced by SW_RenderCopyEx().

SDL_Renderer * SW_CreateRenderer ( SDL_Window window,
Uint32  flags 
)
static

Definition at line 181 of file SDL_render_sw.c.

References NULL, SDL_GetWindowSurface(), and SW_CreateRendererForSurface().

static void SW_DestroyRenderer ( SDL_Renderer renderer)
static

Definition at line 717 of file SDL_render_sw.c.

References SDL_Renderer::driverdata, and SDL_free().

Referenced by SW_CreateRendererForSurface().

static void SW_DestroyTexture ( SDL_Renderer renderer,
SDL_Texture texture 
)
static

Definition at line 709 of file SDL_render_sw.c.

References SDL_Texture::driverdata, and SDL_FreeSurface().

Referenced by SW_CreateRendererForSurface().

static int SW_GetOutputSize ( SDL_Renderer renderer,
int w,
int h 
)
static
static int SW_LockTexture ( SDL_Renderer renderer,
SDL_Texture texture,
const SDL_Rect rect,
void **  pixels,
int pitch 
)
static
static void SW_RenderPresent ( SDL_Renderer renderer)
static

Definition at line 699 of file SDL_render_sw.c.

References SDL_UpdateWindowSurface(), and SDL_Renderer::window.

Referenced by SW_CreateRendererForSurface().

static int SW_SetRenderTarget ( SDL_Renderer renderer,
SDL_Texture texture 
)
static

Definition at line 318 of file SDL_render_sw.c.

References SDL_Texture::driverdata, SDL_Renderer::driverdata, and if().

Referenced by SW_CreateRendererForSurface().

static int SW_SetTextureAlphaMod ( SDL_Renderer renderer,
SDL_Texture texture 
)
static
static int SW_SetTextureBlendMode ( SDL_Renderer renderer,
SDL_Texture texture 
)
static
static int SW_SetTextureColorMod ( SDL_Renderer renderer,
SDL_Texture texture 
)
static
static void SW_UnlockTexture ( SDL_Renderer renderer,
SDL_Texture texture 
)
static

Definition at line 313 of file SDL_render_sw.c.

Referenced by SW_CreateRendererForSurface().

static int SW_UpdateClipRect ( SDL_Renderer renderer)
static
static int SW_UpdateViewport ( SDL_Renderer renderer)
static
static void SW_WindowEvent ( SDL_Renderer renderer,
const SDL_WindowEvent event 
)
static

Variable Documentation