https://github.com/mond1c/openglengine
It's open source gaming engine. It's my main project.
https://github.com/mond1c/openglengine
cpp cpp20 engine game-engine glfw opengl
Last synced: about 1 month ago
JSON representation
It's open source gaming engine. It's my main project.
- Host: GitHub
- URL: https://github.com/mond1c/openglengine
- Owner: Mond1c
- Created: 2022-06-15T07:28:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-12T08:48:17.000Z (over 2 years ago)
- Last Synced: 2025-05-16T05:08:50.668Z (about 1 year ago)
- Topics: cpp, cpp20, engine, game-engine, glfw, opengl
- Language: C++
- Homepage:
- Size: 1.98 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenGL Engine
This is a game engine. It's based on OpenGl.
Now available:
- Base 2D objects
- Keyboard input
- Mouse input
- 2D physics
- Init objects from file. You need to use my own language to do this
# Language for objects
Firstly, you need to indicate type of object.
After that you can indicate position, size, color, vertices.
You can check example in the Object.object file.
### Examples for primitive objects.
#### For Point
type=point
position=0,0
color=255,255,255,255
#### For Line
type=line
position=0,0
position=40,0
color=255,255,255,255
#### For Rectangle
type=rectangle
position=0,0
scale=1,1
color=255,255,255,255
#### For Circle
type=circle
position=0,0
radius=50
color=255,255,255
#### For Triangle
type=triangle
position=0,0
scale=1,1
vertex=-20,0
vertex=0,20
vertex=20,0
color=255,255,255,255
#### For Polygon
position=0,0
scale=1,1
vertex=-100,-100,
vertex=-50,40
vertex=0,100
vertex=100,20
color=255,255,255,255