Panda3D
panda
src
dxgsg9
dxVertexBufferContext9.h
1
// Filename: dxVertexBufferContext9.h
2
// Created by: drose (18Mar05)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef DXVERTEXBUFFERCONTEXT9_H
16
#define DXVERTEXBUFFERCONTEXT9_H
17
18
#include "pandabase.h"
19
#include "dxgsg9base.h"
20
#include "vertexBufferContext.h"
21
#include "deletedChain.h"
22
23
class
CLP(GraphicsStateGuardian);
24
25
////////////////////////////////////////////////////////////////////
26
// Class : DXVertexBufferContext9
27
// Description : Caches a GeomVertexArrayData in the DirectX device as
28
// a vertex buffer.
29
////////////////////////////////////////////////////////////////////
30
class
EXPCL_PANDADX CLP(
VertexBufferContext
) :
public
VertexBufferContext
{
31
public
:
32
CLP(
VertexBufferContext
)(CLP(
GraphicsStateGuardian
) *dxgsg,
33
PreparedGraphicsObjects
*pgo,
34
GeomVertexArrayData
*data);
35
ALLOC_DELETED_CHAIN(CLP(
VertexBufferContext
));
36
37
virtual
void
evict_lru();
38
39
LPDIRECT3DVERTEXBUFFER9 _vbuffer;
40
int
_fvf;
41
42
public
:
43
static
TypeHandle
get_class_type() {
44
return
_type_handle;
45
}
46
static
void
init_type() {
47
VertexBufferContext::init_type();
48
register_type(_type_handle,
"DXVertexBufferContext9"
,
49
VertexBufferContext::get_class_type());
50
}
51
virtual
TypeHandle
get_type()
const
{
52
return
get_class_type();
53
}
54
virtual
TypeHandle
force_init_type() {init_type();
return
get_class_type();}
55
56
private
:
57
static
TypeHandle
_type_handle;
58
};
59
60
#include "dxVertexBufferContext9.I"
61
62
#endif
PreparedGraphicsObjects
A table of objects that are saved within the graphics context for reference by handle later...
Definition:
preparedGraphicsObjects.h:60
VertexBufferContext
This is a special class object that holds all the information returned by a particular GSG to indicat...
Definition:
vertexBufferContext.h:36
GraphicsStateGuardian
Encapsulates all the communication with a particular instance of a given rendering backend...
Definition:
graphicsStateGuardian.h:67
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
GeomVertexArrayData
This is the data for one array of a GeomVertexData structure.
Definition:
geomVertexArrayData.h:63
Generated on Wed May 17 2017 23:41:22 for Panda3D by
1.8.13