Ensure no M_PI collision, add LSP support

This commit is contained in:
2022-02-26 15:33:00 +01:00
parent c6240e8a3d
commit 2ea55d6d94
2 changed files with 3 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#
cmake_minimum_required(VERSION 3.6)
project (glowbox)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "") # nice for language servers
#
# Set python cmd, preferring python 3

View File

@@ -1,7 +1,9 @@
#include <iostream>
#include "shapes.h"
#ifndef M_PI
#define M_PI 3.14159265359f
#endif
Mesh cube(glm::vec3 scale, glm::vec2 textureScale, bool tilingTextures, bool inverted, glm::vec3 textureScale3d) {
glm::vec3 points[8];