1 #ifndef SDK_2D_RENDER_TARGET_INIT_SETTINGS_HELPER_H_
13 #define SDK_2D_RENDER_TARGET_INIT_SETTINGS_HELPER_H_
23 #include "../os_specific_types.h"
24 #include "../2d_render_target_init_settings_interface.h"
26 #include <base/inc/sdk_pshpack1.h>
33 SDK_PACK(
struct SkiaFBOParameters
35 SDKUInt32 viewport_width;
36 SDKUInt32 viewport_height;
38 SDKUInt32 samples_count;
39 SDKUInt32 stencil_buff_bits;
45 SDK_PACK(
struct SkiaTextureParameters
47 SDKUInt32 viewport_width;
48 SDKUInt32 viewport_height;
50 SDKUInt32 samples_count;
66 const SDKAny& value)
throw() {
70 SDKAny& value)
const throw();
73 virtual SDKAtomicRefCount SDK_CALLTYPE AddRef()
const throw();
74 virtual SDKAtomicRefCount SDK_CALLTYPE Release()
const throw();
76 void** obj_ptr)
throw();
82 #if defined(SDK_OS_WIN) && defined(SDK_GRAPHICS_USE_DIRECTX_10_1) // Direct2D specific
85 const D2D1_RENDER_TARGET_PROPERTIES* common_props,
86 RenderTargetInitSettingsSP& settings)
throw();
91 const D2D1_HWND_RENDER_TARGET_PROPERTIES* hwnd_props,
92 const D2D1_RENDER_TARGET_PROPERTIES* common_props,
93 RenderTargetInitSettingsSP& settings)
throw();
97 const IDXGISurface* dxgi_surface,
98 const D2D1_RENDER_TARGET_PROPERTIES* common_props,
99 RenderTargetInitSettingsSP& settings)
throw();
100 #endif // SDK_OS_WIN && SDK_GRAPHICS_USE_DIRECTX_10_1
104 const OpenGLGraphicsDeviceContext& context, RenderTargetInitSettingsSP& settings)
throw();
108 const OpenGLGraphicsDeviceContext& context,
109 const SkiaFBOParameters& fbo_parameters,
110 RenderTargetInitSettingsSP& settings)
throw();
114 const OpenGLGraphicsDeviceContext& context,
115 const SkiaTextureParameters& texture_parameters,
116 RenderTargetInitSettingsSP& settings)
throw();
120 const OSWindow& window, RenderTargetInitSettingsSP& settings)
throw();
124 const sdk::vis::scene::ITextureSP& texture,
125 RenderTargetInitSettingsSP& settings)
throw();
134 #if defined(SDK_OS_WIN) && defined(SDK_GRAPHICS_USE_DIRECTX_10_1) // Direct2D specific properties
135 virtual SDKResult InitWithCommonD2DProperties(
137 const D2D1_RENDER_TARGET_PROPERTIES& common_props)
throw();
138 #endif // SDK_OS_WIN && SDK_GRAPHICS_USE_DIRECTX_10_1
141 virtual SDKResult InitWithOSGraphicsContexts(
142 const OpenGLGraphicsDeviceContext& context)
throw();
145 virtual SDKResult SetPropertyImpl(
const wchar_t*
id,
const SDKAny& value)
throw();
154 mutable SDKAtomicRefCount m_ref;
157 typedef std::map<std::wstring, sdk::SDKAnyHandler> PropertiesMap;
158 PropertiesMap m_properties;
160 #if defined(SDK_OS_WIN) && defined(SDK_GRAPHICS_USE_DIRECTX_10_1)
166 DXGISurfaceSP m_dxgi_surface;
167 #endif // SDK_OS_WIN && SDK_GRAPHICS_USE_DIRECTX_10_1
174 #include <base/inc/sdk_poppack.h>
176 #endif // SDK_2D_RENDER_TARGET_INIT_SETTINGS_HELPER_H_