diff options
| author | vimene <vincent.menegaux@gmail.com> | 2026-01-17 00:06:31 +0100 |
|---|---|---|
| committer | vimene <vincent.menegaux@gmail.com> | 2026-01-17 00:06:31 +0100 |
| commit | 0d10b77f77459333c5549711334f417623ab1f3e (patch) | |
| tree | 6584ab5d09fa72c93a70ac916bfdf401c7617157 /src/fb/pixfb.hpp | |
| parent | 175c71637b6bea6dcdd0faf3d614339983809bb1 (diff) | |
| download | engine-0d10b77f77459333c5549711334f417623ab1f3e.tar.gz | |
improved software shaders
- unified terminal and graphical software renderer shaders
- added vertex shaders for software renderers
- removed VertexData
- moved shaders from frame buffers to their own class
- added FrameBufferConcept and ShadersConcept
Diffstat (limited to 'src/fb/pixfb.hpp')
| -rw-r--r-- | src/fb/pixfb.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fb/pixfb.hpp b/src/fb/pixfb.hpp index 954f6e1..d341b10 100644 --- a/src/fb/pixfb.hpp +++ b/src/fb/pixfb.hpp @@ -4,7 +4,6 @@ #include <vector> #include <cstdint> #include "math/vector.hpp" -#include "o3d/vertex_data.hpp" namespace engine::fb { @@ -13,8 +12,7 @@ class PixelFrameBuffer { PixelFrameBuffer(unsigned int w, unsigned int h); void resize(unsigned int w, unsigned int h); void clear(); - void draw_point(int x, int y, const engine::math::Vector3& loc, - const engine::math::Vector3& normal, const engine::math::Vector2& uv, const engine::o3d::VertexData& vd); + void draw_point(int x, int y, const engine::math::Vector4& point); constexpr unsigned int width() const & { return w; |
