Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
TextureData.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_TEXTURE_DATA_H_
34
#define DVD_TEXTURE_DATA_H_
35
36
namespace
Divide
{
37
38
struct
CopyTexParams
39
{
40
vec2<U16>
_layerRange
{0u, 1u};
41
vec2<U32>
_sourceCoords
;
42
vec2<U32>
_targetCoords
;
43
vec2<U16>
_dimensions
;
//width, height
44
U8
_sourceMipLevel
{ 0u };
45
U8
_targetMipLevel
{ 0u };
46
};
47
48
enum class
TextureUpdateState
:
U8
{
49
ADDED
= 0,
50
REPLACED
,
51
NOTHING
,
52
COUNT
53
};
54
55
struct
ImageReadbackData
56
{
57
vector<Byte>
_data
;
58
U16
_width
{0u};
59
U16
_height
{0u};
60
U8
_bpp
{0u};
61
U8
_numComponents
{0u};
62
bool
_sourceIsBGR
{
false
};
63
};
64
65
};
//namespace Divide
66
67
#endif
//DVD_TEXTURE_DATA_H_
Divide::vec2
Definition:
MathVectors.h:130
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::AppStepResult::COUNT
@ COUNT
Divide::U8
uint8_t U8
Definition:
PlatformDataTypes.h:44
Divide::vector
eastl::vector< Type > vector
Definition:
Vector.h:42
Divide::U16
uint16_t U16
Definition:
PlatformDataTypes.h:45
Divide::TextureUpdateState
TextureUpdateState
Definition:
TextureData.h:48
Divide::TextureUpdateState::ADDED
@ ADDED
Divide::TextureUpdateState::NOTHING
@ NOTHING
Divide::TextureUpdateState::REPLACED
@ REPLACED
Divide::CopyTexParams
Definition:
TextureData.h:39
Divide::CopyTexParams::_layerRange
vec2< U16 > _layerRange
Definition:
TextureData.h:40
Divide::CopyTexParams::_sourceMipLevel
U8 _sourceMipLevel
Definition:
TextureData.h:44
Divide::CopyTexParams::_sourceCoords
vec2< U32 > _sourceCoords
Definition:
TextureData.h:41
Divide::CopyTexParams::_targetCoords
vec2< U32 > _targetCoords
Definition:
TextureData.h:42
Divide::CopyTexParams::_targetMipLevel
U8 _targetMipLevel
Definition:
TextureData.h:45
Divide::CopyTexParams::_dimensions
vec2< U16 > _dimensions
Definition:
TextureData.h:43
Divide::ImageReadbackData
Definition:
TextureData.h:56
Divide::ImageReadbackData::_width
U16 _width
Definition:
TextureData.h:58
Divide::ImageReadbackData::_numComponents
U8 _numComponents
Definition:
TextureData.h:61
Divide::ImageReadbackData::_sourceIsBGR
bool _sourceIsBGR
Definition:
TextureData.h:62
Divide::ImageReadbackData::_data
vector< Byte > _data
Definition:
TextureData.h:57
Divide::ImageReadbackData::_bpp
U8 _bpp
Definition:
TextureData.h:60
Divide::ImageReadbackData::_height
U16 _height
Definition:
TextureData.h:59
Source
Platform
Video
Headers
TextureData.h
Generated on Fri May 17 2024 16:59:54 for Divide Framework by
1.9.6