CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsViewportProperties.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef __OD_GS_VIEWPORT_PROPERTIES__
25#define __OD_GS_VIEWPORT_PROPERTIES__
26
27#include "TD_PackPush.h"
28
29#include "Gs/GsProperties.h"
34
35// Viewports is not entities or nodes (this is objects with one attributes set per scene)
36
37// OdGsViewportProperties hierarhy:
38// OdGsViewportProperties
39// OdGsBackgroundProperties
40// OdGsVisualStyleProperties
41// OdGsRenderEnvironmentProperties
42// OdGsRenderSettingsProperties
43
47{
48 OdGiViewportTraitsData* m_pViewportTraits;
49 // Internal handlers
50 OdGsBackgroundPropertiesPtr m_pBackground;
51 OdGsVisualStylePropertiesPtr m_pVisualStyle;
52 OdGsRenderEnvironmentPropertiesPtr m_pRenderEnvironment;
53 OdGsRenderSettingsPropertiesPtr m_pRenderSettings;
54public:
56
61
66
70 OdGiViewportTraitsData* viewportTraitsData() const { return m_pViewportTraits; }
71
79
84
85 // OdGsProperties virtual overrides
86
91 {
92 return kViewport;
93 }
94
109
110 // Update attributes
111 virtual void update(const OdGiDrawable* pUnderlyingDrawable,
112 OdGsViewImpl* view, OdUInt32 incFlags = kAll);
113 // Display attributed data
114 virtual void display(OdGsBaseVectorizer& view,
115 OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
116};
117
122
123#include "TD_PackPop.h"
124
125#endif // __OD_GS_VIEWPORT_PROPERTIES__
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdSmartPtr< OdGsViewportProperties > OdGsViewportPropertiesPtr
unsigned int OdUInt32
ODRX_DECLARE_MEMBERS(OdGsViewportProperties)
OdGiViewportTraitsData * viewportTraitsData() const
virtual PropertiesType propertiesType() const
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274