MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / BindColor

Method BindColor

PanzerChasm/client/minimap_drawer_gl.cpp:249–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void MinimapDrawerGL::BindColor( const unsigned char color_index )
250{
251 const Palette& palette= game_resources_->palette;
252
253 lines_shader_.Uniform(
254 "color",
255 float( palette[ color_index * 3u + 0u ] ) / 255.0f,
256 float( palette[ color_index * 3u + 1u ] ) / 255.0f,
257 float( palette[ color_index * 3u + 2u ] ) / 255.0f,
258 0.7f );
259}
260
261void MinimapDrawerGL::UpdateDynamicWalls( const MapState& map_state )
262{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected