GithubHelp home page GithubHelp logo

sadikovi / olcpixelgameengine-macos Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 125 KB

Build and run olcPixelGameEngine with g++ on macOS

C++ 100.00%
macos mac osx cli olcpixelgameengine olc olcpixelgameengine-macos

olcpixelgameengine-macos's Introduction

olcPixelGameEngine-macos

The repository contains the latest version of https://github.com/OneLoneCoder/olcPixelGameEngine updated to be built on macOS.

Supports older macOS versions, e.g. builds and runs fine on OSX 10.13 and OSX 10.14. No XCode required.

If the olcPixelGameEngine.h file is out of date, then feel free to open a PR to update it!

Requirements

The only requirement is having X11 installed. X11 is no longer included in macOS, but X11 server and client libraries are available from the XQuartz project (see https://support.apple.com/en-us/HT201341).

You can download X11 from https://www.xquartz.org/ and easily install it. Typical installation path is /usr/X11 and it contains includes and libraries for X11 and OpenGL.

I will be working on XCode and Metal support as well.

Build and run the example program

Run this command to build and the example program and then run it:

g++ -o olcExampleProgram olcExampleProgram.cpp \
  -I/usr/X11/include -L/usr/X11/lib -lX11 -lGL -lpng -lpthread -std=c++17
./olcExampleProgram

olcpixelgameengine-macos's People

Contributors

sadikovi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

joseeteixeira

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.