Ensure no M_PI collision, add LSP support
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user