nanoMMO
0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
outline.h
Go to the documentation of this file.
1
#ifndef NANOMMO_CLIENT_OUTLINE_H_
2
#define NANOMMO_CLIENT_OUTLINE_H_
3
4
#include <raylib.h>
5
6
namespace
nanommo
{
7
8
/// Cel shading's outlines, the way raylib's example draws them: a model is
9
/// drawn a second time, a little bigger and inside out, in a dark colour, so
10
/// that it shows around the model's edges. There's a shader for models without
11
/// bones, and one for models with them.
12
struct
Outline
{
13
Shader
still
;
14
Shader
skinned
;
15
};
16
17
/// Draws a model with an outline's shader, inside out: with its front faces
18
/// culled, its back faces show, behind the model.
19
void
DrawOutline
(
const
Model& model,
const
Matrix& transform, Shader shader);
20
21
}
// namespace nanommo
22
23
#endif
// NANOMMO_CLIENT_OUTLINE_H_
nanommo
Definition
chat.cc:9
nanommo::DrawOutline
void DrawOutline(const Model &model, const Matrix &transform, Shader shader)
Definition
outline.cc:11
nanommo::Outline
Definition
outline.h:12
nanommo::Outline::skinned
Shader skinned
Definition
outline.h:14
nanommo::Outline::still
Shader still
Definition
outline.h:13
client
outline.h
Generated by
1.15.0