OpenCPN Partial API docs
Loading...
Searching...
No Matches
gl_texture_descr.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2013 by David S. Register *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
8
* *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, see <https://www.gnu.org/licenses/>. *
16
***************************************************************************/
17
24
#ifndef __GLTEXTUREDESCRIPTOR_H__
25
#define __GLTEXTUREDESCRIPTOR_H__
26
27
#include <wx/wxprec.h>
28
29
#ifndef WX_PRECOMP
30
#include <wx/wx.h>
31
#endif
// precompiled headers
32
33
#include "
gl_headers.h
"
34
35
#include "dychart.h"
36
#include "model/ocpn_types.h"
37
#include "color_types.h"
38
39
#define CA_READ 0
40
#define CA_WRITE 1
41
42
#define GPU_TEXTURE_UNKNOWN 0
43
#define GPU_TEXTURE_UNCOMPRESSED 1
44
#define GPU_TEXTURE_COMPRESSED 2
45
46
class
glTexFactory
;
47
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
gl_tex_cache.h:108
glTextureDescriptor
Definition
gl_texture_descr.h:48
gl_headers.h
Platform independent GL includes.
gui
include
gui
gl_texture_descr.h
Generated on Thu Sep 18 2025 02:25:26 for OpenCPN Partial API docs by
1.9.8