VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhaveSim
drawingSharedMemory.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <
bhaveSim/bhaveSimDefines.h
>
9
#include <kyruntime.h>
10
#include "
bhaveUtil/dataTransfer.h
"
11
#include <
simTerrainDrawer/debugDrawerSharedMemoryManager.h
>
12
13
namespace
BHAVE
14
{
15
16
namespace
DrawingViewer
17
{
18
22
class
DT_DLL_bhaveSim
DtSharedMemory
:
public
DtDataTransfer
23
{
24
public
:
25
class
ScopedFrame
26
{
27
public
:
28
explicit
ScopedFrame
(
DtSharedMemory
& memory)
29
: myLock(*memory.myMemoryManager)
30
{
31
}
32
33
private
:
34
DtDebugDrawerSharedMemoryManager::ScopedFrame
myLock
;
35
};
36
37
DtSharedMemory
();
38
virtual
~
DtSharedMemory
();
39
40
virtual
bool
Init(
unsigned
int
max_lines,
const
char
* path);
41
virtual
void
Exit();
42
43
virtual
void
Draw3DLine(
const
Kaim::Vec3f& p1,
const
Kaim::Vec3f& p2, KyUInt32 r, KyUInt32 g, KyUInt32 b);
44
virtual
void
Draw3DPoint(
const
Kaim::Vec3f& p1, KyUInt32 r, KyUInt32 g, KyUInt32 b);
45
virtual
void
EndFrame();
46
virtual
void
Reset();
47
48
protected
:
49
50
DtDebugDrawerSharedMemoryManager
*
myMemoryManager
;
51
};
52
53
}
54
55
}
//namespace BHAVE
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)