VR-Forces 5.0.3 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
gdb
textureCoords.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: texCoord.h,v $ $Revision: 1.5 $ $State: Exp $
7
*********************************************************************/
8
9
#ifndef textureCoords_H_
10
#define textureCoords_H_
11
12
#include "
gdb/gdbDefines.h
"
13
#include <vlutil/vlMachineTypes.h>
14
15
// class DtTextureCoords:
16
//
17
// Instances of DtTextureCoords are
18
19
class
DT_DLL_gdb
DtTextureCoords
20
{
21
public
:
22
23
// default constructor
24
DtTextureCoords
();
25
26
// additional constructor
27
DtTextureCoords
(
DtFloat32
u,
DtFloat32
v);
28
29
30
// destructor
31
virtual
~
DtTextureCoords
();
32
33
// accessors
34
virtual
DtFloat32
u()
const
;
35
virtual
DtFloat32
v()
const
;
36
37
virtual
void
set(
DtFloat32
newu,
DtFloat32
newv);
38
// If a copy constructor is implemented, the assignment operator should
39
// also be implemented. Should generally implement both of them anyway to
40
// avoid memory problems due to inappropriate compiler provided defaults.
41
// Access varies so need to put proper access keyword above these
42
// declarations.
43
44
protected
:
45
46
// copy constructor
47
DtTextureCoords
(
const
DtTextureCoords
& orig);
48
49
// assignment operator
50
DtTextureCoords
& operator=(
const
DtTextureCoords
& orig);
51
52
protected
:
53
54
DtFloat32
myU
;
55
DtFloat32
myV
;
56
};
57
58
inline
DtFloat32
DtTextureCoords::u
()
const
59
{
60
return
myU
;
61
}
62
63
inline
DtFloat32
DtTextureCoords::v
()
const
64
{
65
return
myV
;
66
}
67
68
69
#endif
DtTextureCoords::myU
DtFloat32 myU
Definition:
textureCoords.h:54
DtTextureCoords::myV
DtFloat32 myV
Definition:
textureCoords.h:55
DtTextureCoords::v
virtual DtFloat32 v() const
Definition:
textureCoords.h:63
gdbDefines.h
DT_DLL_gdb
#define DT_DLL_gdb
Definition:
gdbDefines.h:25
vrvControlToolkit::DtFloat32
float DtFloat32
Definition:
vrvControlStructTypes.h:35
DtTextureCoords
Definition:
textureCoords.h:19
DtTextureCoords::u
virtual DtFloat32 u() const
Definition:
textureCoords.h:58
Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)