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
34
35
36
### Debug Draw Samples

Three sample programs showing basic usage of the Debug Draw library are currently provided:

- `sample_null_renderer.cpp`: Just a tiny `main()` that calls a couple functions and exists.
  This sample is meant to test if the library will compile without errors.

- `sample_gl_core.cpp`: Sample using core (shader-based) OpenGL that draws a handful of debug
  shapes using the library. You can move around using `W,A,S,D` or the arrow keys. Click on the
  window and drag the mouse to rotate the camera. This sample requires OpenGL version 3.2 or newer.

- `sample_gl_legacy.cpp`: Exact same as the core GL sample, but uses a legacy (AKA fixed-function)
  OpenGL renderer instead.

- `samples_common.hpp`: Contains code shared by all samples, such as input handling and camera/controls.

----

To build the samples on Linux or MacOS, run the provided Makefile.
For Windows, Visual Studio projects are included for VS2015.

The only external dependency to build the samples is [GLFW](http://www.glfw.org/). Make sure to install
it before attempting to build them. [GL3W](https://github.com/skaslev/gl3w) is our extension wrangler
for the core GL sample. It is included here and builds with DD. Sony's Vectormath library is also
a dependency, but it is included as well. Those libraries are only required for the samples and
not by Debug Draw itself.

The samples have only been officially tested on MacOS and Windows 7, though should build and run fine
on Linux, provided that you have GLFW installed. Running them requires at least OpenGL v3.2, but due
to hardware differences there's no guarantee that they will render the expected outputs, even if your machine supports GL3+.
Little to no handling is done to account for GL version and hardware differences, so the samples might not run properly on your hardware.

The main idea is that they serve as a rough guide on how to integrate Debug Draw into your own projects,
so there's more value in the code itself than in the demo applications, which are just drawing some line
shapes in the 3D world and some HUD text, nothing more.

Commits for Divide-Dependencies/debug-draw/samples/README.md

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