aboutsummaryrefslogtreecommitdiff
path: root/src/engine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* various improvementsvimene2025-01-021-26/+116
| | | | | | | | | | - cleaned up the computation of the camera's matrix - changed VertexData to being a struct which transmit data between the "vertex shader" and the "fragment shader" - started working on keyboard and mouse controls - added fov (field of view) - changed quaternion to euler angles conversion, from zyx to zxy - fixed computations of z coordinates in triangle rendering - improved naming in the triangle rasterizer
* fixed parse_object by implementing custom parsersvimene2024-12-311-9/+12
| | | | | std::setlocale also change the parsing of floats with std::stof. It is also more future proof to use a parser specific to Wavefront .obj files.
* various improvementsvimene2024-12-311-50/+65
| | | | | | | | | | | - added quaternions and rewrote all rotations to use them - added transforms to put all object transforms in a single place - added Wavefront .obj file parser - removed frame buffer's abstract class - improved vectors, matrices, triangles, vertices and vertices data by putting all code in header file - added vector's operations - changed from NULL to nullptr - miscellaneous improvements
* improved mesh definitionvimene2023-12-111-7/+11
| | | | | | | | - In the context of mesh definition, splited indices into vertex index, normal index and vertex data index to be able to specify different normals and vertex data for different faces using the same vertex
* fixed perspective, added planevimene2023-12-091-11/+5
|
* fixed missing `help' option in usagevimene2023-12-051-1/+1
|
* added renderer, improved various thingsvimene2023-12-051-13/+23
| | | | | | | - Added renderer to unify frame buffers - Added FrameBuffer class as a parent for frame buffers' classes - Improved formatting in Makefile.am - Added const modifier in Matrix4's methods
* renamed MathVector{2,3,4} to Vector{2,3,4} and Mat4 to Matrix4 in engine::mathvimene2023-12-031-13/+13
|
* added scenes, camera and meshesvimene2023-11-261-17/+31
|
* added namespaces, made every function in engine.cpp static and added ↵vimene2023-11-261-18/+22
| | | | warnings' flags
* improved matrices, cube building and command parsingvimene2023-11-261-163/+54
|
* added matricesvimene2023-11-261-39/+14
|
* add options to choose render modevimene2023-11-231-254/+167
|
* improve SDL integrationvimene2023-11-231-12/+0
|
* code refactoringvimene2023-11-221-7/+7
|
* renamed binary from 'main' to 'engine'vimene2023-11-211-0/+510