Skip to content

ExstarNGINE is a 2d c++ game engine built with glfw and modern opengl

License

Notifications You must be signed in to change notification settings

amorcomputrum/ExstarNGINE

Repository files navigation

Geno

Exstar alpha 2.0

Discord

Exstar's built-in physics engine is still not fully functional

Box2d will be integrated soon


Building

When building on linux run "sh INSTALL.sh"

When on another OS use cmake to compile

Compiling

Linking: Link Exstar when compiling


Example

main.cpp


#include "Window.hpp"
int main()
{
	Window* window = new Window(800,200,"Test Window");
	window->setBackgroundColor(exstar::Color::Black);
	window->run();
	return 0;
}


include/Window.hpp


#include "Exstar/Window.h"
class Window : public exstar::Window
{
public:
	Window(int width,int height,const char* title) : exstar::Window(width,height,title) {
		//Set framerate to 60
		setFramerate(60);
	}
	void render(exstar::Graphics g){
		//Set the Fill Color
		g.setColor(exstar::Color::Blue);
		//Render Rectangle at 0,0 with a width of 50 and height of 100
		g.drawRect(0,0,50,100);
	}

};

Compiling with G++


g++ main.cpp -o app -lExstar -Iinclude/

About

ExstarNGINE is a 2d c++ game engine built with glfw and modern opengl

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages