VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtIndirectTextureProcessor.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2018 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <string>
15
#include <
vrvOsg/DtIndirectGeometryTextures.h
>
16
17
namespace
makVrv
18
{
20
class
DT_DLL_VRVOSG
DtIndirectTextureProcessor
21
{
22
public
:
23
virtual
void
launchTextureLoadsIfNecessary(
void
);
24
virtual
void
collectTexturesToLoad(
const
VectorOsgTextures
& newTexturesFound);
25
virtual
bool
collectCompiledTextures(osg::RenderInfo& renderInfo);
26
27
protected
:
28
//only the registrar can create these for now
29
friend
class
DtIndirectGeometryRegistrar
;
30
32
DtIndirectTextureProcessor
();
33
35
virtual
~
DtIndirectTextureProcessor
();
36
37
// internal
38
virtual
void
collectTexturesToLoad(
const
DtIndirectGeometryTextures
& osgGeometryTextures);
39
virtual
void
collectTexturesToLoad(
const
osg::ref_ptr<osg::Texture>& texture);
40
41
protected
:
42
43
typedef
std::set<osg::ref_ptr<osg::Texture> >
SetTextures
;
44
45
SetTextures
myTexturesToLoad
;
46
SetTextures
myTexturesLoading
;
47
SetTextures
myTexturesLoaded
;
48
49
typedef
std::set<int>
SetTextureUnits
;
50
SetTextureUnits
mySetTextureUnitsToFree
;
51
52
private
:
53
bool
myTexturesDirtyThisFrame
;
54
unsigned
int
myLastFrameNumber
;
55
};
56
57
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)