mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
ff924f6b00
- 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...
26 lines
548 B
C++
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;
|
|
};
|