SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | LoadedPicture |
Macros | |
#define | SHAPED_WINDOW_X 150 |
#define | SHAPED_WINDOW_Y 150 |
#define | SHAPED_WINDOW_DIMENSION 640 |
Functions | |
void | render (SDL_Renderer *renderer, SDL_Texture *texture, SDL_Rect texture_dimensions) |
int | main (int argc, char **argv) |
#define SHAPED_WINDOW_DIMENSION 640 |
Definition at line 20 of file testshape.c.
Referenced by main().
#define SHAPED_WINDOW_X 150 |
Definition at line 18 of file testshape.c.
Referenced by main().
#define SHAPED_WINDOW_Y 150 |
Definition at line 19 of file testshape.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 41 of file testshape.c.
References SDL_WindowShapeParams::binarizationCutoff, SDL_WindowShapeParams::colorKey, SDL_Surface::format, SDL_PixelFormat::format, SDL_Rect::h, i, j, SDL_Event::key, SDL_KeyboardEvent::keysym, LoadedPicture::mode, SDL_WindowShapeMode::mode, LoadedPicture::name, NULL, SDL_WindowShapeMode::parameters, render(), renderer, SDL_CreateRenderer, SDL_CreateShapedWindow, SDL_CreateTextureFromSurface, SDL_Delay, SDL_DestroyRenderer, SDL_DestroyTexture, SDL_DestroyWindow, SDL_free, SDL_FreeSurface, SDL_ISPIXELFORMAT_ALPHA, SDL_KEYDOWN, SDL_KEYUP, SDL_LoadBMP, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogInfo, SDL_LogSetPriority, SDL_malloc, SDL_PollEvent, SDL_QueryTexture, SDL_QUIT, SDL_SetWindowPosition, SDL_SetWindowShape, SDL_SetWindowSize, SDL_VideoInit, SDL_VideoQuit, SDLK_ESCAPE, SHAPED_WINDOW_DIMENSION, SHAPED_WINDOW_X, SHAPED_WINDOW_Y, ShapeModeBinarizeAlpha, ShapeModeColorKey, LoadedPicture::surface, SDL_Keysym::sym, LoadedPicture::texture, SDL_Event::type, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
void render | ( | SDL_Renderer * | renderer, |
SDL_Texture * | texture, | ||
SDL_Rect | texture_dimensions | ||
) |
Definition at line 29 of file testshape.c.
References SDL_RenderClear, SDL_RenderCopy, SDL_RenderPresent, and SDL_SetRenderDrawColor.
Referenced by main().