VR-Forces 4.7 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
DtBlitOsgToGlTexture.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <
vrvGraphicsUtils/DtGlRenderToTexture.h
>
15
16
#include <osg/Texture2D>
17
18
namespace
makVrv
19
{
20
class
DtGlProgram;
21
class
DtGlScreenQuad;
22
25
class
DT_DLL_VRVOSG
DtBlitOsgToGlTexture
26
{
27
private
:
29
DtBlitOsgToGlTexture
();
30
32
DtBlitOsgToGlTexture
(
const
DtBlitOsgToGlTexture
&);
33
35
DtBlitOsgToGlTexture
& operator=(
const
DtBlitOsgToGlTexture
&);
36
37
public
:
39
DtBlitOsgToGlTexture
(
int
width,
int
height,
DtGlRenderTexture::ImageType
internalFormat =
DtGlRenderTexture::RGBA8
);
40
42
DtBlitOsgToGlTexture
(
unsigned
int
id
);
43
45
virtual
~
DtBlitOsgToGlTexture
();
46
48
virtual
unsigned
int
id()
const
;
49
51
virtual
void
blit(osg::State* state, osg::Texture2D* source)
const
;
52
53
protected
:
55
void
createShader();
56
57
DtGlProgram
*
myShader
;
58
DtGlRenderTexture
*
myRtt
;
59
DtGlScreenQuad
*
myScreenQuad
;
60
61
DtGlRenderTexture::ImageType
myInternalFormat
;
62
unsigned
int
myWidth
;
63
unsigned
int
myHeight
;
64
};
65
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)