-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathsample_null_renderer.cpp
More file actions
33 lines (25 loc) · 880 Bytes
/
Copy pathsample_null_renderer.cpp
File metadata and controls
33 lines (25 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ================================================================================================
// -*- C++ -*-
// File: sample_null_renderer.cpp
// Author: Guilherme R. Lampert
// Brief: Minimal Debug Draw usage sample that does nothing (a null renderer).
//
// This software is in the public domain. Where that dedication is not recognized,
// you are granted a perpetual, irrevocable license to copy, distribute, and modify
// this file as you see fit.
// ================================================================================================
#define DEBUG_DRAW_IMPLEMENTATION
#include "debug_draw.hpp"
class DDRenderInterfaceNull final
: public dd::RenderInterface
{
public:
~DDRenderInterfaceNull() { }
};
int main()
{
DDRenderInterfaceNull ddRenderIfaceNull;
dd::initialize(&ddRenderIfaceNull);
dd::flush();
dd::shutdown();
}