Include GL in linked libraries for Linux Mint. Fix HEADLESS and segfault in header

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent d795b5df8a
commit ff2fd5e28d
  1. BIN
      C++ProjectTemplate
  2. 22
      main.cpp
  3. 1
      pixelGameEngine.cpp
  4. 876
      pixelGameEngine.h
  5. BIN
      pixelGameEngine.o
  6. 2
      sig

Binary file not shown.

@ -60,28 +60,6 @@ struct Data{
int main()
{
std::vector<int> testList;
std::cout<<"Test"<<std::endl;
testList.push_back(1);
testList.push_back(1);
testList.push_back(1);
testList.push_back(1);
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
testList.erase(testList.begin());
std::cout<<testList.size()<<std::endl;
Example demo;
if (demo.Construct(640, 480, 4, 4))
demo.Start();

@ -1,3 +1,2 @@
#define OLC_PGE_APPLICATION
#define OLC_PGE_HEADLESS
#include "pixelGameEngine.h"

File diff suppressed because it is too large Load Diff

Binary file not shown.

2
sig

@ -3,7 +3,7 @@ export AUTO_UPDATE=true
source utils/define.sh
define PROJECT_NAME "C++ProjectTemplate"
define CUSTOM_PARAMS "-std=c++17 -lX11 -lpthread -lpng -lstdc++fs -I/usr/include/lua5.3"
define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -I/usr/include/lua5.3"
define LANGUAGE "C++"
source utils/main.sh

Loading…
Cancel
Save