OpenCPN Partial API docs
Loading...
Searching...
No Matches
gl_tex_cache.cpp File Reference

Implement gl_tex_cache.h – OpenGL texture cache. More...

#include <stdint.h>
#include <wx/wxprec.h>
#include <wx/tokenzr.h>
#include <wx/filename.h>
#include <wx/wx.h>
#include "config.h"
#include "mipmap/mipmap.h"
#include "model/config_vars.h"
#include "model/gui_vars.h"
#include "chartbase.h"
#include "chartdb.h"
#include "chartimg.h"
#include "chcanv.h"
#include "dychart.h"
#include "gl_chart_canvas.h"
#include "gl_tex_cache.h"
#include "gl_texture_descr.h"
#include "lz4.h"
#include "lz4hc.h"
#include "OCPNPlatform.h"
#include "Quilt.h"
#include "squish.h"
#include "viewport.h"

Go to the source code of this file.

Macros

#define GL_ETC1_RGB8_OES   0x8D64
 

Enumerations

enum  TextureDataType { COMPRESSED_BUFFER_OK , MAP_BUFFER_OK }
 

Functions

bool GetMemoryStatus (int *mem_total, int *mem_used)
 
wxString CompressedCachePath (wxString path)
 

Variables

ColorScheme global_color_scheme
 
ocpnGLOptions g_GLOptions
 
glTextureManagerg_glTextureManager
 Global instance.
 

Detailed Description

Implement gl_tex_cache.h – OpenGL texture cache.

Definition in file gl_tex_cache.cpp.

Macro Definition Documentation

◆ GL_ETC1_RGB8_OES

#define GL_ETC1_RGB8_OES   0x8D64

Definition at line 54 of file gl_tex_cache.cpp.

Enumeration Type Documentation

◆ TextureDataType

enum TextureDataType

Definition at line 148 of file gl_tex_cache.cpp.

Function Documentation

◆ CompressedCachePath()

wxString CompressedCachePath ( wxString  path)
extern

Definition at line 98 of file gl_texture_mgr.cpp.

◆ GetMemoryStatus()

bool GetMemoryStatus ( int *  mem_total,
int *  mem_used 
)
extern

Definition at line 6306 of file ocpn_frame.cpp.

Variable Documentation

◆ g_GLOptions

ocpnGLOptions g_GLOptions
extern

Definition at line 25 of file ocpn_gl_options.cpp.

◆ g_glTextureManager

glTextureManager* g_glTextureManager
extern

Global instance.

Definition at line 94 of file gl_texture_mgr.cpp.

◆ global_color_scheme

ColorScheme global_color_scheme
extern

Definition at line 110 of file viewport.cpp.