added setAmbientLight(), setWorldColor()

This commit is contained in:
h4570
2020-12-07 21:02:06 +01:00
parent 18f3398687
commit 3284c5a598
8 changed files with 54 additions and 22 deletions
+5 -3
View File
@@ -17,6 +17,7 @@
#include <draw_primitives.h>
#include <math3d.h>
#include <packet2.h>
#include "./light.hpp"
#include "../models/mesh.hpp"
#include "../models/math/matrix.hpp"
#include "../models/screen_settings.hpp"
@@ -29,17 +30,18 @@ class GifSender
{
public:
GifSender(u32 t_packetSize, ScreenSettings *t_screen);
GifSender(u32 t_packetSize, ScreenSettings *t_screen, Light *t_light);
~GifSender();
void initPacket(u8 context);
void addObject(RenderData *t_renderData, Mesh &t_mesh, u32 vertexCount, VECTOR *vertices, VECTOR *normals, VECTOR *coordinates, LightBulb *t_bulbs, u16 t_bulbsCount, texbuffer_t *textureBuffer);
void addClear(zbuffer_t *t_zBuffer);
void addClear(zbuffer_t *t_zBuffer, color_t *rgb);
void sendPacket();
void sendClear(zbuffer_t *t_zBuffer);
void sendClear(zbuffer_t *t_zBuffer, color_t *rgb);
static void sendTexture(Texture &texture, texbuffer_t *t_texBuffer);
private:
Light *light;
xyz_t *xyz;
color_t *rgbaq;
texel_t *st;