Added the standard headers and footers that make SDL_shape.h and SDL_shape.c integrate properly into the build.
This commit is contained in:
parent
3e7fb6f4a8
commit
608b696abd
2 changed files with 35 additions and 20 deletions
|
@ -20,8 +20,22 @@
|
||||||
eligottlieb@gmail.com
|
eligottlieb@gmail.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct SDL_Shaped_Window;
|
#ifndef _SDL_shape_h
|
||||||
typedef struct SDL_Shaped_Window SDL_Shaped_Window;
|
#define _SDL_shape_h
|
||||||
|
|
||||||
|
#include "SDL_stdinc.h"
|
||||||
|
#include "SDL_pixels.h"
|
||||||
|
#include "SDL_rect.h"
|
||||||
|
#include "SDL_surface.h"
|
||||||
|
#include "SDL_video.h"
|
||||||
|
|
||||||
|
#include "begin_code.h"
|
||||||
|
/* Set up for C function definitions, even when using C++ */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
/* *INDENT-OFF* */
|
||||||
|
extern "C" {
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Create a shaped window with the specified position, dimensions, and flags.
|
* \brief Create a shaped window with the specified position, dimensions, and flags.
|
||||||
|
@ -45,7 +59,15 @@ typedef struct SDL_Shaped_Window SDL_Shaped_Window;
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
|
extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
|
||||||
|
|
||||||
extern DECLSPE SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window);
|
extern DECLSPEC SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window);
|
||||||
extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window);
|
extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window);
|
||||||
|
|
||||||
extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window);
|
/* Ends C function definitions when using C++ */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
/* *INDENT-OFF* */
|
||||||
|
}
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
#endif
|
||||||
|
#include "close_code.h"
|
||||||
|
|
||||||
|
#endif /* _SDL_shape_h */
|
||||||
|
|
|
@ -19,28 +19,21 @@
|
||||||
Eli Gottlieb
|
Eli Gottlieb
|
||||||
eligottlieb@gmail.com
|
eligottlieb@gmail.com
|
||||||
*/
|
*/
|
||||||
|
#include "SDL_config.h"
|
||||||
|
|
||||||
|
#include "SDL.h"
|
||||||
|
#include "SDL_video.h"
|
||||||
|
#include "SDL_sysvideo.h"
|
||||||
#include "SDL_shape.h"
|
#include "SDL_shape.h"
|
||||||
|
|
||||||
struct SDL_Shaped_Window {
|
SDL_Window* SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
|
||||||
SDL_Window *window;
|
|
||||||
SDL_Surface *shape_mask;
|
|
||||||
}
|
|
||||||
|
|
||||||
SDL_Shaped_Window * SDLCALL SDL_CreateShapedWindow(const char *title,
|
|
||||||
unsigned int x,unsigned int y,
|
|
||||||
unsigned int w,unsigned int h,
|
|
||||||
Uint32 flags) {
|
|
||||||
//TODO: Fill in stub of SDL_CreatedShapedWindow
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SDLCALL SDL_PresentShape(const SDL_Shaped_Window *window) {
|
SDL_bool SDL_WindowIsShaped(const SDL_Window *window) {
|
||||||
//TODO: Fill in stub of SDL_PresentShape
|
return SDL_FALSE;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window) {
|
int SDL_SelectShapeRenderer(const SDL_Window *window) {
|
||||||
//TODO: Fill in stub of SDL_DestroyShapedWindow
|
return -1;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue