From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_video_factory_8cpp_source.html | 188 +++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 Doc/doxygen/html/_video_factory_8cpp_source.html (limited to 'Doc/doxygen/html/_video_factory_8cpp_source.html') diff --git a/Doc/doxygen/html/_video_factory_8cpp_source.html b/Doc/doxygen/html/_video_factory_8cpp_source.html new file mode 100644 index 0000000..1fa54b0 --- /dev/null +++ b/Doc/doxygen/html/_video_factory_8cpp_source.html @@ -0,0 +1,188 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/VideoFactory.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
VideoFactory.cpp
+
+
+Go to the documentation of this file.
1 /* Project nGenEx
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: nGenEx.lib
+
6  FILE: VideoFac.cpp
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Video and Polygon Renderer Factory class
+
13 */
+
14 
+
15 #include "MemDebug.h"
+
16 #include "VideoFactory.h"
+
17 
+
18 #include "VideoDX9.h"
+
19 #include "SoundD3D.h"
+
20 
+
21 // +--------------------------------------------------------------------+
+
22 
+ +
24 : hwnd(h), video(0), audio(0)
+
25 { }
+
26 
+ +
28 { }
+
29 
+
30 // +--------------------------------------------------------------------+
+
31 
+
32 Video*
+ +
34 {
+
35  if (!video) {
+
36  video = (Video*) new(__FILE__,__LINE__) VideoDX9(hwnd, vs);
+
37 
+
38  if (!video) {
+
39  delete video;
+
40  video = 0;
+
41  }
+
42  }
+
43 
+
44  return video;
+
45 }
+
46 
+
47 // +--------------------------------------------------------------------+
+
48 
+
49 void
+ +
51 {
+
52  if (v == video) {
+
53  delete video;
+
54  video = 0;
+
55  }
+
56 }
+
57 
+
58 // +--------------------------------------------------------------------+
+
59 
+
60 SoundCard*
+ +
62 {
+
63  if (!audio) {
+
64  audio = new(__FILE__,__LINE__) SoundCardD3D(hwnd);
+
65  Sound::UseSoundCard(audio);
+
66  }
+
67 
+
68  return audio;
+
69 }
+
70 
+
71 
+
+
+ + + + -- cgit v1.1