Code Monkey home page Code Monkey logo

flextgl-example's Introduction

flextGL example

This is a small example program that demonstrates how flextGL can be included in your build system.

Cloning flextGL

flextGL is included as a Git submodule. To check it out call

git submodule init
git submodule update

This is necessary independent of which build system is going to be used.

Compilation

There are two separate build scripts available:

Make

This only works with Linux. You need to have GLFW3 installed.

Just call make to build the example program.

You can find the build script in Makefile.

To build the example with OpenGL ES you can use the alternative Makefile.es.

make -f Makefile.es

You might have to perform a make clean first.

CMake

This works both with Windows and Linux.

For building under Linux, call:

mkdir build
cd build
cmake ..
make

This should build the example in the separate build directory and copy all files necessary for execution in there.

You can enable OpenGL ES output by toggling the TARGET_GLES CMake option.

For building with Windows and Visual Studio, the easiest way is to use cmake-gui. Select the path of the example project. Select a build path and click on "Generate". This will let you select the compiler chain. There is currently only precompiled libraries for 32-bit Visual Studio 2008 and 2010 included.

After doing this, there will be a Visual Studio solution file in the build directory. Open it and build the contained example project.

You can find the build script in CMakeLists.txt

flextgl-example's People

Contributors

ginkgo avatar mosra avatar

Watchers

 avatar  avatar  avatar

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.