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
6namespace 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.
12struct 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.
19void DrawOutline(const Model& model, const Matrix& transform, Shader shader);
20
21} // namespace nanommo
22
23#endif // NANOMMO_CLIENT_OUTLINE_H_
Definition chat.cc:9
void DrawOutline(const Model &model, const Matrix &transform, Shader shader)
Definition outline.cc:11
Shader skinned
Definition outline.h:14