@@ -44,7 +44,7 @@ mat4 VideoData::proj_matrix; | |||||
mat4 VideoData::view_matrix; | mat4 VideoData::view_matrix; | ||||
#if defined __ANDROID__ || defined __CELLOS_LV2__ || defined __APPLE__ | #if defined __ANDROID__ || defined __CELLOS_LV2__ || defined __APPLE__ | ||||
ivec2 VideoData::saved_viewport = 0; | |||||
ivec2 VideoData::saved_viewport(0, 0); | |||||
#endif | #endif | ||||
/* | /* | ||||
@@ -14,6 +14,10 @@ | |||||
#include <cstdio> | #include <cstdio> | ||||
#if USE_SDL && defined __APPLE__ | |||||
# include <SDL_main.h> | |||||
#endif | |||||
#include "core.h" | #include "core.h" | ||||
using namespace lol; | using namespace lol; | ||||
@@ -14,6 +14,10 @@ | |||||
#include <cstdio> | #include <cstdio> | ||||
#if USE_SDL && defined __APPLE__ | |||||
# include <SDL_main.h> | |||||
#endif | |||||
#include "core.h" | #include "core.h" | ||||
using namespace lol; | using namespace lol; | ||||
@@ -95,7 +99,7 @@ static float floatsin(float f) | |||||
#undef float | #undef float | ||||
} | } | ||||
int main(void) | |||||
int main(int argc, char **argv) | |||||
{ | { | ||||
typedef union { float f; uint32_t x; } flint; | typedef union { float f; uint32_t x; } flint; | ||||
@@ -15,6 +15,10 @@ | |||||
#include <cstring> | #include <cstring> | ||||
#include <cstdio> | #include <cstdio> | ||||
#if USE_SDL && defined __APPLE__ | |||||
# include <SDL_main.h> | |||||
#endif | |||||
#include "core.h" | #include "core.h" | ||||
using namespace lol; | using namespace lol; | ||||
@@ -36,7 +40,7 @@ real myerr(real const &y) | |||||
return sin(x) / (x * y); | return sin(x) / (x * y); | ||||
} | } | ||||
int main(void) | |||||
int main(int argc, char **argv) | |||||
{ | { | ||||
RemezSolver<6> solver; | RemezSolver<6> solver; | ||||
solver.Run(real::R_1 >> 400, real::R_PI_2 * real::R_PI_2, myfun, myerr, 40); | solver.Run(real::R_1 >> 400, real::R_PI_2 * real::R_PI_2, myfun, myerr, 40); | ||||
@@ -110,7 +110,7 @@ private: | |||||
bool m_ready; | bool m_ready; | ||||
}; | }; | ||||
int main() | |||||
int main(int argc, char **argv) | |||||
{ | { | ||||
Application app("Tutorial 1: Triangle", ivec2(640, 480), 60.0f); | Application app("Tutorial 1: Triangle", ivec2(640, 480), 60.0f); | ||||
@@ -173,7 +173,7 @@ private: | |||||
bool m_ready; | bool m_ready; | ||||
}; | }; | ||||
int main() | |||||
int main(int argc, char **argv) | |||||
{ | { | ||||
Application app("Tutorial 2: Cube", ivec2(640, 480), 60.0f); | Application app("Tutorial 2: Cube", ivec2(640, 480), 60.0f); | ||||
@@ -63,7 +63,7 @@ private: | |||||
vec2 graph[2000]; | vec2 graph[2000]; | ||||
}; | }; | ||||
int main() | |||||
int main(int argc, char **argv) | |||||
{ | { | ||||
Application app("Xolotl", ivec2(640, 480), 60.0f); | Application app("Xolotl", ivec2(640, 480), 60.0f); | ||||