Questions tagged [olcpixelgameengine]

The olcPixelGameEngine is a single-file prototyping and game-engine framework created in C++. It is cross platform, compiling on Windows via Visual Studio and Code::Blocks, and on Linux with a modern g++. On Windows platforms it has no external dependencies outside those that come as standard with popular IDEs. On Linux, it relies on a couple which again, would typically come as standard. I created this tool due to the success of the olcConsoleGameEngine, and it draws heavily from that user experience. In fact, code written with olcConsoleGameEngine is trivially portable to olcPixelGameEngine.

5 questions
0
votes
0 answers

no NPOT issues on msvc but when on mingw-w64 the screen stays blank

I'm using olc::PixelGameEngine and I'm using the Example Program except that I'm enabling STB image. on MSVC, PGE worked great for several months without any issues but recently i moved to make+mingw-w64 and I'm getting a white screen at startup.…
MaxCE
  • 7
  • 3
0
votes
0 answers

Error while compiling, (using a 3rd party header file.) (olcPixelGameEngine) in Ubuntu 20.04

I am using a header file named OlcPixelGameEngine, and one more header file, but when I run the compile command, I get a big error. This is the command to compile the cpp program. g++ main.cpp -o main -luser32 -lgdi32 -lopengl32 -lgdiplus -lShlwapi…
0
votes
0 answers

Compile error, c++ OlcPixelGameEngine header file in use. Ubuntu 20.04

so the header file actually needs packages for it to work, I don't know how to install it that is why I am posting the error here. -lGL -lpthread -lpng -lstdc++fs -std=c++17 /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lpng collect2:…
0
votes
2 answers

How to check if any key is pressed in pixel game engine

I know that a specific key, for example a can be checked as if (GetKey(olc::A).bPressed){ //do stuff } but how can I check if any key is pressed. Example if (any key is pressed){ //if i pressed a, it should output…
user12291970
-1
votes
1 answer

libraries not found in c++ code using a 3rd party header file

I am getting a error when I try to compile some c++ code using the olcPixelGameEngine as a header file, the error is - /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lpng