Panda3D
config_awesomium.cxx
1 // Filename: config_awesomium.cxx
2 // Created by: rurbino (12Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source cawesomium in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_awesomium.h"
16 #include "awWebCore.h"
17 #include "awWebView.h"
18 #include "awWebViewListener.h"
19 #include "dconfig.h"
20 
21 
22 Configure(config_awesomium);
23 NotifyCategoryDef(awesomium, "");
24 
25 
26 ConfigureFn(config_awesomium) {
27  init_libawesomium();
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: init_libawesomium
32 // Description: Initializes the library. This must be called at
33 // least once before any of the functions or classes in
34 // this library can be used. Normally it will be
35 // called by the static initializers and need not be
36 // called explicitly, but special cases exist.
37 ////////////////////////////////////////////////////////////////////
38 void
39 init_libawesomium() {
40  static bool initialized = false;
41  if (initialized) {
42  return;
43  }
44  initialized = true;
45 
46  AwWebCore::init_type();
47  AwWebView::init_type();
48  AwWebViewListener::init_type();
49 
50 }