Subversion Repository Public Repository

Divide-Dependencies

This repository has no backups
This repository's network speed is throttled to 100KB/sec

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
33
// ================================================================================================
// -*- C++ -*-
// File: sample_null_renderer.cpp
// Author: Guilherme R. Lampert
// Created on: 17/12/15
// 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
    : public dd::RenderInterface
{
public:
    ~DDRenderInterfaceNull() { }
};

int main()
{
    DDRenderInterfaceNull ddRenderIfaceNull;

    dd::initialize(&ddRenderIfaceNull);

    dd::flush(0);

    dd::shutdown();
}

Commits for Divide-Dependencies/debug-draw/samples/sample_null_renderer.cpp

Diff revisions: vs.
Revision Author Commited Message
70 IonutCava picture IonutCava Wed 26 Jul, 2017 20:21:42 +0000

[Ionut]
- Added Hodgman’s variant of the debug-draw library. ref: https://github.com/hodgman/debug-draw