mirror of
https://github.com/haya3218/SDfmL.git
synced 2024-08-14 23:57:09 +00:00
Update some comments
This commit is contained in:
parent
1606f4d22b
commit
aca3c7bda8
2 changed files with 16 additions and 4 deletions
|
@ -11,6 +11,8 @@ set(OUT2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/src/SoLoud/MIDI/")
|
||||||
set(OUT3_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/src/toml/")
|
set(OUT3_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/src/toml/")
|
||||||
|
|
||||||
# Support both 32 and 64 bit builds
|
# Support both 32 and 64 bit builds
|
||||||
|
# Someone make a pull request to support MingW
|
||||||
|
# Way to lazy to do that right now
|
||||||
if (${CMAKE_SIZEOF_VOID_P} MATCHES 8)
|
if (${CMAKE_SIZEOF_VOID_P} MATCHES 8)
|
||||||
set(MAIN_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/x64/soloud_static.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2main.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2_ttf.lib")
|
set(MAIN_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/x64/soloud_static.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2main.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2_ttf.lib")
|
||||||
set(MAIN_LIBRARIES_E "${CMAKE_CURRENT_LIST_DIR}/lib/x64/")
|
set(MAIN_LIBRARIES_E "${CMAKE_CURRENT_LIST_DIR}/lib/x64/")
|
||||||
|
|
18
src/Main.cpp
18
src/Main.cpp
|
@ -1,6 +1,16 @@
|
||||||
#define SDL_MAIN_HANDLED // needs to be here or linker fucking dies
|
/**
|
||||||
#define SDL_STBIMAGE_IMPLEMENTATION
|
* @file Main.cpp
|
||||||
#undef _HAS_STD_BYTE
|
* @author haya3218
|
||||||
|
* @brief This is an example on how to use SDfmL. Code may suck. beware
|
||||||
|
* @version 0.1
|
||||||
|
* @date 2022-02-11
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2022
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define SDL_MAIN_HANDLED // needs to be here so that SDL doesnt hijack our main function
|
||||||
|
#define SDL_STBIMAGE_IMPLEMENTATION // to use sdl_stbimage
|
||||||
|
#undef _HAS_STD_BYTE // avoid std::byte hijacking native byte type
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "SDL2/SDL.h"
|
#include "SDL2/SDL.h"
|
||||||
#include "Render.hpp"
|
#include "Render.hpp"
|
||||||
|
@ -132,7 +142,7 @@ class SplashScreen : public State {
|
||||||
SplashScreen m;
|
SplashScreen m;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
if (!Init("SDLflixel :)))))")){
|
if (!Init("SDfmL :))))))")){
|
||||||
return ERROR_CODE;
|
return ERROR_CODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue