Code Monkey home page Code Monkey logo

opengl-project's Introduction

OpenGL Experimenting - An Attempt to Create a Very Simple 2D/3D Engine For Simple Games

This repository is my attempt to create a very basic engine (which was initially aimed to create the very basic multiplayer game tank wars). Note that the code is nowhere near professional, and I don't suggest you to use this engine, as of now.

Dependencies

The dependencies in this project are:

  • GLFW - For window and input handling
  • glad - OpenGL loader
  • cmake - to generate the Makefile (necessary for building)

Insatallation

Windows

The project already includes the necessary header files for dependencies, and all you need to do is build GLFW's source files (which is "source package") (which I recommend), or just download the binaries (which can be found in the same webpage, with the name X-bit OS Binaries). Note that you need the change the library file in CMakeLists.txt since it uses MacOS's .dylib file format. If you struggle, google the problem, since Windows sucks and I don't know how to deal with Windows.

MacOS

You can download GLFW using a package manager (I recommend brew). Verify that the glfw file is under /usr/local/Cellar/ and it contains both the include and lib folders. Also check that the libglfw.3.3.dylib file is inside /usr/local/lib folder since CMakeLists.txt file assumes that it is there.

Linux

You can download the pre-built binaries or the source file same as the Windows process, but change the GLFW_LIB path in CMakeLists.txt according to where the library file is. If you have any errors, just google it since I am not familiar with Linux also.

Build

If you have completed the Insatallation process successfully, all you need to do is:

cd cmake-build-debug
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
make
./OpenGL-Project

Contributing

This is a (very) small project, and I don't expect any contributions at all, but if you have one please do contribute.

Thanks for being interested in.

opengl-project's People

Contributors

ehurturk avatar

Stargazers

 avatar Cem Hurturk avatar  avatar

Watchers

 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.