Go to the documentation of this file.
18 #define SHAPED_WINDOW_X 150
19 #define SHAPED_WINDOW_Y 150
20 #define SHAPED_WINDOW_DIMENSION 640
41 int 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 SHAPED_WINDOW_DIMENSION
void render(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Rect texture_dimensions)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
#define SDL_SetWindowShape
#define SDL_RenderPresent
A collection of pixels used in software blitting.
@ SDL_LOG_CATEGORY_APPLICATION
#define SDL_SetWindowSize
GLuint GLint GLboolean GLint GLenum access
The type used to identify a window.
@ ShapeModeBinarizeAlpha
A binarized alpha cutoff with a given integer value.
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
Uint8 binarizationCutoff
A cutoff alpha value for binarization of the window shape's alpha channel.
WindowShapeMode mode
The mode of these window-shape parameters.
#define SDL_CreateTextureFromSurface
EGLSurface EGLNativeWindowType * window
GLuint const GLchar * name
SDL_WindowShapeParams parameters
Window-shape parameters.
#define SDL_LoadBMP(file)
@ ShapeModeColorKey
A color key is applied.
#define SDL_DestroyTexture
static SDL_Renderer * renderer
#define SDL_LogSetPriority
A rectangle, with the origin at the upper left.
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)
int main(int argc, char **argv)
#define SDL_CreateShapedWindow
#define SDL_SetRenderDrawColor
#define SDL_ISPIXELFORMAT_ALPHA(format)
#define SDL_CreateRenderer
#define SDL_DestroyRenderer
GLenum GLenum GLuint texture
#define SDL_SetWindowPosition
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)
#define SDL_DestroyWindow