linux build
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include "core.h"
|
||||
#include "os.cpp"
|
||||
#define STB_SPRINTF_IMPLEMENTATION
|
||||
@@ -298,6 +297,7 @@ real32 parsePositiveReal32(string str, size_t *lengthPointer) {
|
||||
*lengthPointer += 1;
|
||||
int fractionalPart = parsePositiveInt(fractionalPartStr, lengthPointer);
|
||||
if (wholePart >= 0 && fractionalPart >= 0) {
|
||||
// TODO(dledda): implement powf with intrinsics? or just custom
|
||||
real32 fractionalPartMultiplier = 1.0f / powf(10.0f, (real32)fractionalPartStr.length);
|
||||
result = (real32)wholePart + (real32)fractionalPart * (real32)fractionalPartMultiplier;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include "lib/glad/glad.c"
|
||||
#include "lib/djstdlib/core.h"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#define GLM_ENABLE_EXPERIMENTAL
|
||||
@@ -397,6 +396,6 @@ int main_gfx() {
|
||||
|
||||
int main() {
|
||||
initialiseCore();
|
||||
return main_cmd();
|
||||
return main_gfx();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user