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

Implement gl_texture_mgr.h – OpenGL texture management. More...

#include <algorithm>
#include <list>
#include <wx/wxprec.h>
#include <wx/progdlg.h>
#include <wx/wx.h>
#include <wx/thread.h>
#include <wx/datetime.h>
#include <wx/event.h>
#include <wx/filename.h>
#include <wx/font.h>
#include <wx/gdicmn.h>
#include <wx/log.h>
#include <wx/stopwatch.h>
#include <wx/string.h>
#include <wx/utils.h>
#include <wx/listimpl.cpp>
#include <wx/arrimpl.cpp>
#include "mipmap/mipmap.h"
#include "ssl/sha1.h"
#include "model/config_vars.h"
#include "model/gui_vars.h"
#include "model/own_ship.h"
#include "chartbase.h"
#include "chartdb.h"
#include "chartimg.h"
#include "chcanv.h"
#include "dychart.h"
#include "font_mgr.h"
#include "gl_chart_canvas.h"
#include "gl_tex_cache.h"
#include "gl_texture_descr.h"
#include "gui_lib.h"
#include "lz4.h"
#include "lz4hc.h"
#include "ocpn_frame.h"
#include "OCPNPlatform.h"
#include "Quilt.h"
#include "squish.h"
#include "viewport.h"

Go to the source code of this file.

Classes

class  compress_target
 
class  OCPNStopWatch
 

Macros

#define GL_ETC1_RGB8_OES   0x8D64
 
#define NBAR_LENGTH   40
 
#define MAX_CACHE_FACTORY   50
 
#define THREAD_WAIT_SECONDS   5
 

Typedefs

using JobList = std::list< JobTicket * >
 

Functions

 WX_DEFINE_ARRAY_PTR (ChartCanvas *, arrayofCanvasPtr)
 
bool GetMemoryStatus (int *mem_total, int *mem_used)
 
wxString CompressedCachePath (wxString path)
 
 WX_DEFINE_SORTED_ARRAY_INT (int, MySortedArrayInt)
 
int CompareInts (int n1, int n2)
 
 WX_DECLARE_OBJARRAY (compress_target, ArrayOfCompressTargets)
 
void GetFullMap (glTextureDescriptor *ptd, const wxRect &rect, wxString chart_path, int level)
 
int TextureDim (int level)
 
int TextureTileSize (int level, bool compressed)
 

Variables

GLuint g_raster_format
 Global instance.
 
arrayofCanvasPtr g_canvasArray
 
glTextureManagerg_glTextureManager
 Global instance.
 

Detailed Description

Implement gl_texture_mgr.h – OpenGL texture management.

Definition in file gl_texture_mgr.cpp.

Macro Definition Documentation

◆ GL_ETC1_RGB8_OES

#define GL_ETC1_RGB8_OES   0x8D64

Definition at line 80 of file gl_texture_mgr.cpp.

◆ MAX_CACHE_FACTORY

#define MAX_CACHE_FACTORY   50

Definition at line 1231 of file gl_texture_mgr.cpp.

◆ NBAR_LENGTH

#define NBAR_LENGTH   40

Definition at line 759 of file gl_texture_mgr.cpp.

Typedef Documentation

◆ JobList

using JobList = std::list<JobTicket *>

Definition at line 83 of file gl_texture_mgr.cpp.

Function Documentation

◆ CompareInts()

int CompareInts ( int  n1,
int  n2 
)

Definition at line 172 of file gl_texture_mgr.cpp.

◆ CompressedCachePath()

wxString CompressedCachePath ( wxString  path)

Definition at line 98 of file gl_texture_mgr.cpp.

◆ GetFullMap()

void GetFullMap ( glTextureDescriptor ptd,
const wxRect &  rect,
wxString  chart_path,
int  level 
)

Definition at line 318 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.

◆ TextureDim()

int TextureDim ( int  level)

Definition at line 345 of file gl_texture_mgr.cpp.

◆ TextureTileSize()

int TextureTileSize ( int  level,
bool  compressed 
)

Definition at line 351 of file gl_texture_mgr.cpp.

Variable Documentation

◆ g_canvasArray

arrayofCanvasPtr g_canvasArray
extern

Definition at line 274 of file ocpn_frame.cpp.

◆ g_glTextureManager

glTextureManager* g_glTextureManager

Global instance.

Definition at line 94 of file gl_texture_mgr.cpp.

◆ g_raster_format

GLuint g_raster_format
extern

Global instance.

Definition at line 204 of file gl_chart_canvas.cpp.