OpenCPN Partial API docs
Loading...
Searching...
No Matches
glTextureDescriptor.h
1
/******************************************************************************
2
*
3
* Project: OpenCPN
4
*
5
***************************************************************************
6
* Copyright (C) 2013 by David S. Register *
7
* *
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
12
* *
13
* This program is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16
* GNU General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU General Public License *
19
* along with this program; if not, write to the *
20
* Free Software Foundation, Inc., *
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22
***************************************************************************
23
*/
24
25
#ifndef __GLTEXTUREDESCRIPTOR_H__
26
#define __GLTEXTUREDESCRIPTOR_H__
27
28
#include <wx/wxprec.h>
29
30
#ifndef WX_PRECOMP
31
#include <wx/wx.h>
32
#endif
// precompiled headers
33
34
#include "
gl_headers.h
"
35
36
#include "dychart.h"
37
#include "model/ocpn_types.h"
38
#include "color_types.h"
39
40
#define CA_READ 0
41
#define CA_WRITE 1
42
43
#define GPU_TEXTURE_UNKNOWN 0
44
#define GPU_TEXTURE_UNCOMPRESSED 1
45
#define GPU_TEXTURE_COMPRESSED 2
46
47
class
glTexFactory
;
48
class
glTextureDescriptor
{
49
public
:
50
glTextureDescriptor
();
51
~glTextureDescriptor
();
52
void
FreeAll();
53
void
FreeMap();
54
void
FreeComp();
55
void
FreeCompComp();
56
57
size_t
GetMapArrayAlloc(
void
);
58
size_t
GetCompArrayAlloc(
void
);
59
size_t
GetCompCompArrayAlloc(
void
);
60
61
bool
IsCompCompArrayComplete(
int
base_level);
62
63
unsigned
int
tex_name;
64
int
level_min;
65
int
x;
66
int
y;
67
int
nGPU_compressed;
68
ColorScheme m_colorscheme;
69
70
int
tex_mem_used;
71
72
unsigned
char
*map_array[10];
73
unsigned
char
*comp_array[10];
74
unsigned
char
*compcomp_array[10];
75
int
compcomp_size[10];
76
77
int
compdata_ticks;
78
};
79
80
#endif
glTexFactory
Definition
glTexCache.h:109
glTextureDescriptor
Definition
glTextureDescriptor.h:48
gl_headers.h
Platform independent GL includes.
gui
include
gui
glTextureDescriptor.h
Generated on Sun Sep 14 2025 02:31:23 for OpenCPN Partial API docs by
1.9.8