d3dut

view README @ 1:242535442d04

added license, readme, and gpl headers
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Jun 2013 10:43:12 +0300
parents
children
line source
1 D3DUT - Direct3D Utility Toolkit
2 --------------------------------
5 1. Overview
7 D3DUT is for Direct3D 11, what GLUT is for OpenGL.
9 In a nutshell, d3dut handles window creation, Direct3D setup, and event handling,
10 in an easy and intuitive way. The API is essentially identical to the GLUT API,
11 allowing you to create multiple D3D windows, and to set up per-window callback
12 functions for event delivery.
14 Here is a short snippet that shows how to create a Direct3D 11 window and set up
15 event handlers with d3dut (a full example program is included under the example
16 subdirectory):
18 d3dut_init(&argc, argv);
19 d3dut_init_window_size(800, 600);
20 d3dut_init_display_mode(D3DUT_RGB | D3DUT_DEPTH | D3DUT_DOUBLE);
21 d3dut_create_window("window title");
23 d3dut_display_func(display);
25 d3dut_main_loop();
27 It's that simple, exactly like in GLUT: d3dut_main_loop handles all the event
28 processing, and calls your registered callbacks. After d3dut_create_window the
29 Direct3D device, context and swap chain are completely created and initialized
30 and you may start loading textures, creating vertex buffers, etc.
33 2. License
35 Copyright (C) 2013 John Tsiombikas <nuclear@member.fsf.org>
36 D3DUT is free software. Feel free to use it, modify it, and redistribute it
37 under the terms of the GNU Lesser General Public License (LGPL) version 3, or
38 at your option any later version published by the Free Software Foundation.
40 In simple words, this means that you can link with this library to use it
41 without any restrictions, for either free or proprietary programs, but if you
42 make any modifications and use them in any released program or derivative
43 library, you must release them under these exact same terms.
45 See COPYING and COPYING.LESSER for the full license text.
48 3. Contact
50 Feel free to contact me for any comments or suggestions, bug reports or patches,
51 through email at: nuclear@member.fsf.org.