The base library of the polyplex engine. (Heavily work in progress)
Member1221 c6749a00d8 Fix scissor rect coordinates 1 month ago
modules creation of vulkan context/instance 4 months ago
shaders Added 2D debugging tools for opengl 7 months ago
source Fix scissor rect coordinates 1 month ago
.gitignore Adding quaternion, and unittests & fixes to vector 8 months ago
.gitmodules Not using submodules until dub supports it. We will have to manually update files 8 months ago Fix spacing issue in 5 months ago Update code of conduct 5 months ago
LICENSE change to boost license 7 months ago Update '' 4 months ago Rename Surface to Window and implement more values for windows, aswell fix mistake in example 1 month ago
dub.json Inital commit of refactor 4 months ago
dub.selections.json Audio playback support 6 months ago
pp-test-simplemath smoothstep and vector interop 4 months ago

Polyplex Logo

Polyplex Main Library (libpp)

Buy Clipsey a Coffee at Join the Discord Server

libpp is an XNA like framework written in D. libpp supports OpenGL and will in the future support Vulkan.

The framework is written to be easy to read and understand for people comming from an C#/XNA background.

libpp is the base rendering, input handling, content handling, etc. library for the WIP Polyplex engine.

Top Tier Patrons

  • The Linux Gamer Community
  • WeimTime

Using libpp

Find libpp on the dub database for instructions on adding libpp as a dependency to your dub project.

Once added, you will need to set logging levels, choose a backend and create a window.

Current capabilities

Polyplex is still very early in development, but libpp can already be used to make simple 2D games, that are relatively easy to port to other platforms. Polyplex packages textures, sounds, etc. into files with the extension ppc. To convert ogg, png, jpeg or tga files to .ppc, use ppcc



ppcc -c (or --convert) my_file.(extension) output will be put in my_file.ppc.

From libpp it can be accessed via ContentManager.Load<Type>("my_file")


Example of simple polyplex application:

module example;
import std.stdio;
import polyplex;
import polyplex.math;

void main(string[] args)
	arg = args[1..$];

	// Enable info and debug logs.
	LogLevel |= LogType.Info;
	LogLevel |= LogType.Debug;

	// Create game instance and start game.
	MyGame game = new MyGame();

class MyGame : Game
	this() {


	public override void Init()
		// Enable/Disable VSync.
		Window.VSync = VSyncState.VSync;

	public override void LoadContent() {
		// Load textures, sound, shaders, etc. here

	public override void Update(GameTimes game_time)

	public override void Draw(GameTimes game_time)

You can also check out example_game, which is used as a testbed for new libpp features/fixes.


The library is written in what would be considered non-idiomatic D.