Panda3D
 All Classes Functions Variables Enumerations
awWebCore.cxx
00001 // Filename: awWebCore.cxx
00002 // Created by:  rurbino (12Oct09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_awesomium.h"
00016 #include "awWebCore.h"
00017 #include "WebCore.h"
00018 
00019 TypeHandle AwWebCore::_type_handle;
00020 
00021 AwWebCore::
00022 AwWebCore(AwWebCore::LogLevel level, bool enablePlugins , AwWebCore::PixelFormat pixelFormat) 
00023 #ifndef CPPPARSER
00024 :
00025   WebCore(static_cast<Awesomium::LogLevel>(level), enablePlugins, static_cast<Awesomium::PixelFormat>(pixelFormat)) 
00026 #endif
00027   {  
00028   awesomium_cat.info() << "constructing webcore\n";
00029 }
00030 
00031 AwWebCore::
00032 ~AwWebCore() {
00033   awesomium_cat.info() << "destructor webcore\n";
00034 }
00035 
00036 Awesomium::WebCore& AwWebCore::
00037 Get() {
00038   return WebCore::Get();
00039 }
00040 
00041 Awesomium::WebCore* AwWebCore::
00042 GetPointer() {
00043   return WebCore::GetPointer();
00044 }
00045 
00046 AwWebView *  AwWebCore::
00047 createWebView(int width, int height, bool isTransparent , bool enableAsyncRendering , int maxAsyncRenderPerSec ) {
00048   Awesomium::WebView * newView = WebCore::createWebView(width, height, isTransparent, enableAsyncRendering, maxAsyncRenderPerSec);
00049   AwWebView * result = new AwWebView(newView);
00050   return result;
00051 }
00052 
00053 AwWebCore::PixelFormat AwWebCore::
00054 getPixelFormat() const {
00055   return ( static_cast<AwWebCore::PixelFormat>( WebCore::getPixelFormat()) );
00056 }
00057 
 All Classes Functions Variables Enumerations