jak-project/game/graphics/opengl_renderer/CollideMeshRenderer.h
ManDude ff924f6b00
improve decomp of state handlers and art groups (#3014)
- state handlers that are not inlined lambdas have smarter type
checking, getting rid of 99.9% of the casts emitted (they were not
useful)
- art groups were not being properly linked to their "master" groups.
- `max` in `ja` in Jak 2 was not being detected.

Another huge PR...
2023-09-23 09:53:50 -04:00

26 lines
548 B
C++

#pragma once
#include "common/versions/versions.h"
#include "game/graphics/opengl_renderer/BucketRenderer.h"
struct PatColors {
math::Vector4f pat_mode_colors[4];
math::Vector4f pat_material_colors[32];
math::Vector4f pat_event_colors[32];
};
class CollideMeshRenderer {
public:
CollideMeshRenderer(GameVersion version);
void render(SharedRenderState* render_state, ScopedProfilerNode& prof);
~CollideMeshRenderer();
private:
void init_pat_colors(GameVersion version);
GLuint m_vao;
GLuint m_ubo;
PatColors m_colors;
};