aboutsummaryrefslogtreecommitdiff
path: root/src/o3d
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-12-05 10:42:35 +0100
committervimene <vincent.menegaux@gmail.com>2023-12-05 10:42:35 +0100
commit9b70ca7b3a1b7bfd3bf434d8b84bde42f5572ca0 (patch)
tree7078a70f7fc5b590c61386f55f4fbcc67e36b0f3 /src/o3d
parent48ec7df0fd27fab05c9918e83a3a7da1cc32d7a0 (diff)
downloadengine-9b70ca7b3a1b7bfd3bf434d8b84bde42f5572ca0.tar.gz
added renderer, improved various things
- 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
Diffstat (limited to 'src/o3d')
-rw-r--r--src/o3d/vertex_data.cpp4
-rw-r--r--src/o3d/vertex_data.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/o3d/vertex_data.cpp b/src/o3d/vertex_data.cpp
index 4e0ab04..ea8c5fd 100644
--- a/src/o3d/vertex_data.cpp
+++ b/src/o3d/vertex_data.cpp
@@ -2,14 +2,14 @@
using namespace engine::o3d;
-VertexData VertexData::lerp(VertexData& vd1, VertexData& vd2, float s) {
+VertexData VertexData::lerp(const VertexData& vd1, const VertexData& vd2, float s) {
(void) vd1;
(void) vd2;
(void) s;
return {};
}
-VertexData VertexData::bilerp(VertexData& vd1, VertexData& vd2, VertexData& vd3, float s, float t) {
+VertexData VertexData::bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float s, float t) {
(void) vd1;
(void) vd2;
(void) vd3;
diff --git a/src/o3d/vertex_data.h b/src/o3d/vertex_data.h
index dda881b..ec5fa25 100644
--- a/src/o3d/vertex_data.h
+++ b/src/o3d/vertex_data.h
@@ -5,8 +5,8 @@ namespace engine::o3d {
class VertexData {
public:
- static VertexData lerp(VertexData& vd1, VertexData& vd2, float s);
- static VertexData bilerp(VertexData& vd1, VertexData& vd2, VertexData& vd3, float s, float t);
+ static VertexData lerp(const VertexData& vd1, const VertexData& vd2, float s);
+ static VertexData bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float s, float t);
VertexData();
};