CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
TrVecDefs.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// GLES2 device definitions
24
25#ifndef ODBASETRVECDEVICEDEFINITIONS
26#define ODBASETRVECDEVICEDEFINITIONS
27
28#include "../TrVisDefs.h"
29#include "../TrVisLightDef.h"
30
39 m_nDuplicate = 0; }
41 { if (nMod != 0xFFFFFFFF)
42 { OdTrVisLightDef::apply(nMod, l);
43 if (GETBIT(nMod, kOverrideDuplicate))
45 } else
46 *this = l;
47 return *this; }
48 OdUInt32 diff(const OdTrVecLightDef &dl2, bool bFinFirstDiff = false) const
49 { const OdUInt32 axxum = OdTrVisLightDef::diff(dl2, bFinFirstDiff);
50 if (axxum != 0xFFFFFFFF)
51 { if (m_nDuplicate != dl2.m_nDuplicate)
52 return (bFinFirstDiff) ? 0xFFFFFFFF : (axxum | kOverrideDuplicate);
53 } return axxum; }
54 bool operator ==(const OdTrVecLightDef &dl2) const
55 { return diff(dl2, true) == 0; }
56 bool operator !=(const OdTrVecLightDef &dl2) const
57 { return diff(dl2, true) != 0; }
58};
59
60#endif // ODBASETRVECDEVICEDEFINITIONS
unsigned int OdUInt32
#define GETBIT(flags, bit)
Definition: OdaDefs.h:517
OdUInt32 m_nDuplicate
Definition: TrVecDefs.h:35
OdTrVecLightDef & apply(OdUInt32 nMod, const OdTrVecLightDef &l)
Definition: TrVecDefs.h:40
void setDefault()
Definition: TrVecDefs.h:37
bool operator==(const OdTrVecLightDef &dl2) const
Definition: TrVecDefs.h:54
bool operator!=(const OdTrVecLightDef &dl2) const
Definition: TrVecDefs.h:56
OdUInt32 diff(const OdTrVecLightDef &dl2, bool bFinFirstDiff=false) const
Definition: TrVecDefs.h:48
OdUInt32 diff(const OdTrVisLightDef &dl2, bool bFinFirstDiff=false) const
OdTrVisLightDef & apply(OdUInt32 nMod, const OdTrVisLightDef &l)