Update some comments

This commit is contained in:
/nick haya 2022-02-11 09:06:31 +08:00
parent 1606f4d22b
commit aca3c7bda8
2 changed files with 16 additions and 4 deletions

View File

@ -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/")
# 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)
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/")

View File

@ -1,6 +1,16 @@
#define SDL_MAIN_HANDLED // needs to be here or linker fucking dies
#define SDL_STBIMAGE_IMPLEMENTATION
#undef _HAS_STD_BYTE
/**
* @file Main.cpp
* @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 "SDL2/SDL.h"
#include "Render.hpp"
@ -132,7 +142,7 @@ class SplashScreen : public State {
SplashScreen m;
int main() {
if (!Init("SDLflixel :)))))")){
if (!Init("SDfmL :))))))")){
return ERROR_CODE;
}