18#define SHAPED_WINDOW_X 150
19#define SHAPED_WINDOW_Y 150
20#define SHAPED_WINDOW_DIMENSION 640
41int main(
int argc,
char** argv)
52 unsigned int current_picture;
71 num_pictures = argc - 1;
77 for(
i=0;
i<num_pictures;
i++)
79 for(
i=0;
i<num_pictures;
i++) {
81 pictures[
i].
name = argv[
i+1];
83 for(
j=0;
j<num_pictures;
j++)
108 for(
i=0;
i<num_pictures;
i++)
118 for(
i=0;
i<num_pictures;
i++)
126 for(
i=0;
i<num_pictures;
i++)
128 for(
i=0;
i<num_pictures;
i++) {
131 for(
i=0;
i<num_pictures;
i++)
134 for(
i=0;
i<num_pictures;
i++)
148 texture_dimensions.
h = 0;
149 texture_dimensions.
w = 0;
150 texture_dimensions.
x = 0;
151 texture_dimensions.
y = 0;
156 while(should_exit == 0) {
167 current_picture += 1;
168 if(current_picture >= num_pictures)
185 for(
i=0;
i<num_pictures;
i++)
191 for(
i=0;
i<num_pictures;
i++)
#define SDL_RenderPresent
#define SDL_CreateShapedWindow
#define SDL_DestroyWindow
#define SDL_DestroyRenderer
#define SDL_DestroyTexture
#define SDL_SetRenderDrawColor
#define SDL_CreateTextureFromSurface
#define SDL_SetWindowPosition
#define SDL_SetWindowShape
#define SDL_CreateRenderer
#define SDL_LogSetPriority
#define SDL_SetWindowSize
@ SDL_LOG_CATEGORY_APPLICATION
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLuint const GLchar * name
GLuint GLint GLboolean GLint GLenum access
GLenum GLenum GLuint texture
#define SDL_ISPIXELFORMAT_ALPHA(format)
@ ShapeModeBinarizeAlpha
A binarized alpha cutoff with a given integer value.
@ ShapeModeColorKey
A color key is applied.
#define SDL_LoadBMP(file)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int in j)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
EGLSurface EGLNativeWindowType * window
A rectangle, with the origin at the upper left (integer).
A collection of pixels used in software blitting.
The type used to identify a window.
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
SDL_WindowShapeParams parameters
Window-shape parameters.
WindowShapeMode mode
The mode of these window-shape parameters.
static SDL_Renderer * renderer
int main(int argc, char **argv)
#define SHAPED_WINDOW_DIMENSION
void render(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Rect texture_dimensions)
Uint8 binarizationCutoff
A cutoff alpha value for binarization of the window shape's alpha channel.