Skip to content

Latest commit

 

History

History
87 lines (79 loc) · 5.53 KB

README.md

File metadata and controls

87 lines (79 loc) · 5.53 KB

SANDAL2

SANDAL2 is a SDL2 wrapper which purpose is to make object managment and graphic display easier.

To generate the Doxygen documentation, use the command:
doxygen Doxyfile

To see this read me file with a better display, you can go to this project's website.

Useful links

From this "read-me", you can either go to :

  • the main read-me ;
  • a small tutorial explaining how to use it ;
  • or the page to report an issue about a tutorial lacking things, an update that could be done or anything that comes to your mind here.

Versions

0.0.0 : SDL2TK
0.1.0 : adding rotations
0.2.0 : clickable areas
0.3.0 : animation's managment
1.0.0 : project renamed SANDAL2
            hide window objects from the user
            hide element's lists from the user
            going from an element's list structure to a list of list (display code) of list (plan) of elements
1.0.1 : possibility to hide event managment from the user
1.0.2 : adding shaded and blended text rendering
            adding and correcting error's functions return
            wrapping of TTF's font style
1.0.3 : adding identifier to sprites
1.0.4 : adding the possibility to set the window's icon
1.0.5 : adding the getter for the text of an element
1.0.6 : correcting the isDisplaied function
1.1.0 : correcting initIteratorElementSDL2 function
            adding a freeing function to element's datas
            adding a function to free an element's data without getting it
            adding a structure that contains every function pointer (event handler)
            adding an event handler to windows so that the user can add window events
            adding functions to allow the user to add window event functions to a window
1.1.1 : adding functions so that windows can be closed in binded functions
            changing error return type from int to unsigned long for event functions on more than one window
1.1.2 : changing functions not meant for the user to static in their source file, removing them from the header
            adding the cast on all mallocs for C++ portability
1.1.3 : optimizing window managment
            renaming HitBox by Clickable
1.1.4 : adding the possibility to change the correspondance between the origin of the window and the origin of all the elements placed
            correcting C++ compatibility by renaming delete attribute of WindowSDL2 deleted
            passing char * to const char * when possible
            adding clearElementToElementSDL2, clearElementWindowSDL2, clearDisplayCode and clearPlanDisplayCode
1.2.0 : removing SDL2 from all the names (structures, functions, ...)
            changing all functions name beginning with change to make them begin with set instead
            changing all functions name beginning with remove to make them begin with del instead
            rennaming initWindow to createWindow
            rennaming setDisplayElement to setDisplayCodeElement
            rennaming isDisplaied to isDisplaiedElement
            rennaming createAnimationElement to addAnimationElement
1.2.1 : adding flipping on images
            rennaming resizeElement to setDimensionElement
            adding functions getCoordXElement, getCoordYElement, getWidthElement, getHeightElement, setCoordXElement, setCoordYElement, setWidthElement and setHeightElement
1.2.2 : improving C++ compatibility

Project's size

Font.c : 268 lines
Window.c : 291 lines
DisplayCode.c : 80 lines
Sprite.c : 308 lines
Clickable.c : 321 lines
Element.c : 1,883 lines
SANDAL2.c : 856 lines

Total for source files : 4,015 lines

Font.h : 115 lines
Window.h : 279 lines
DisplayCode.h : 78 lines
Sprite.h : 195 lines
Clickable.h : 219 lines
Element.h : 923 lines
SANDAL2.h : 201 lines

Total for header files : 2,020 lines

Total : 6,035 lines