GUIDOLib  1.7.7
Guido Engine Internal Documentation
SingletonGSystem.h
1 #ifndef SingletonGSystem_H
2 #define SingletonGSystem_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2003, 2006 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include "VGSystem.h"
18 #include "GUIDOExport.h"
19 
20 // --------------------------------------------------------------
21 // VGSystem class
22 // --------------------------------------------------------------
23 
24 class_export SingletonGSystem
25 {
26  public:
27 
28  // static method for singleton like behaviour
29  static void SetInstance(VGSystem* instance);
30  static VGDevice* SCreateDisplayDevice();
31  static VGDevice* SCreateMemoryDevice(int inWidth, int inHeight);
32  static VGDevice* SCreateMemoryDebugDevice(int inWidth, int inHeight, const char* outfile=0);
33  static VGDevice* SCreateMemoryDevice(const char * inPath);
34  static VGDevice* SCreatePrinterDevice();
35  static const VGFont* SCreateVGFont(const char * faceName, int size, int properties);
36  static VGDevice* SCreateAntiAliasedMemoryDevice(int inWidth, int inHeight);
37  static VGSystem* mInstance;
38 };
39 
40 #endif
VGSystem
Generic pure virtual class for manipulating platform independant drawing devices and fonts.
Definition: VGSystem.h:61
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
VGFont
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36

Guido Project Copyright © 2019 Grame-CNCM