CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GsBackground.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 _ODGSBACKGROUND_H_INCLUDED_
25#define _ODGSBACKGROUND_H_INCLUDED_
26
27#include "RxObject.h"
28#include "GsExport.h"
29#include "RxModule.h"
30
34class OdGiDrawable;
35
36#include "TD_PackPush.h"
37
43{
44 public:
46 const OdGiDrawable *pDrawable,
47 OdGiBackgroundTraitsData* pBackgroundTraits,
48 OdGsPropertiesDirectRenderOutput *pdro = NULL) = 0;
49};
50
55class GS_TOOLKIT_EXPORT OdGsBackground : public OdRxObject
57{
58public:
60
72
73 virtual BackgroundType type() const = 0;
74
75 virtual void display(OdGsBaseVectorizer& view,
76 const OdGiDrawable *pDrawable,
77 OdGiBackgroundTraitsData* pBackgroundTraits,
78 OdGsPropertiesDirectRenderOutput *pdro = NULL) = 0;
79
81 const OdGiDrawable *pDrawable,
82 OdGiBackgroundTraitsData* pBackgroundTraits,
84 {
85 display(view, pDrawable, pBackgroundTraits, pdro);
86 }
87
88 virtual void setNestedBackground(OdGsNestedBackground * /*pNestedBackground*/) { }
89 virtual OdGsNestedBackground *getNestedBackground() const { return NULL; }
90};
91
96
116
121
122#include "TD_PackPop.h"
123
124#endif // _ODGSBACKGROUND_H_INCLUDED_
OdSmartPtr< OdGsBackground > OdGsBackgroundPtr
OdSmartPtr< OdGsBackgroundModule > OdGsBackgroundModulePtr
#define GS_TOOLKIT_EXPORT
Definition GsExport.h:37
#define ODRX_ABSTRACT
virtual void nestedBackgroundDisplay(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)
virtual OdGsNestedBackground * getNestedBackground() const
virtual BackgroundType type() const =0
virtual void display(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)=0
virtual void setNestedBackground(OdGsNestedBackground *)
ODRX_DECLARE_MEMBERS(OdGsBackground)
virtual OdGsBackgroundPtr createBackground(OdGsBackground::BackgroundType type)=0
ODRX_DECLARE_MEMBERS(OdGsBackgroundModule)
virtual void nestedBackgroundDisplay(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)=0
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274