VR-Forces 5.0.1 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
vrvGraphicsUtils
DtGlTextureUtils.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2021 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
#include <
vrvGraphicsUtils/vrvGraphicsUtils.h
>
12
13
#include <string>
14
15
namespace
makVrv
16
{
17
class
DT_DLL_VRVGRAPHICSUTILS
DtGlTextureUtils
18
{
19
public
:
21
DtGlTextureUtils
() =
delete
;
23
virtual
~
DtGlTextureUtils
() =
delete
;
25
DtGlTextureUtils
(
const
DtGlTextureUtils
&) =
delete
;
27
DtGlTextureUtils
& operator=(
const
DtGlTextureUtils
&) =
delete
;
28
public
:
30
static
std::string textureName(
unsigned
int
id
);
31
33
static
int
textureSize(
unsigned
int
id
);
34
36
static
int
width(
unsigned
int
id
);
37
39
static
int
height(
unsigned
int
id
);
40
42
static
int
internalFormat(
unsigned
int
id
);
43
45
static
int
numMipMaps(
unsigned
int
id
);
46
49
static
int
numComponents(
unsigned
int
pixelFormat);
50
52
static
bool
isCompressedFormat(
unsigned
int
internalFormat);
53
55
static
int
sizeInBytesOfCompressedTextureWithMipMaps(
int
internalFormat,
int
startMipMapWidth,
int
startMipMapHeight);
56
58
static
int
sizeOfMipMap(
int
internalFormat,
int
width,
int
height);
59
61
static
const
char
* formatToString(
int
format);
62
64
static
void
computeCompressedSize(
int
internalFormat,
int
width,
int
height,
int
depth,
int
& blockSize,
int
&
size
);
65
};
66
}
vrvGraphicsUtils.h
Dll export defines.
size
voidpf void uLong size
Definition:
ioapi.h:39
makVrv::DtGlTextureUtils
Definition:
DtGlTextureUtils.h:17
DT_DLL_VRVGRAPHICSUTILS
#define DT_DLL_VRVGRAPHICSUTILS
Definition:
vrvGraphicsUtils.h:18
Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)