12 #ifndef GLVIS_AUX_VIS_HPP
13 #define GLVIS_AUX_VIS_HPP
30 int view = 3,
const char *keys = NULL);
104 int Screenshot(
const char *fname,
bool convert =
false);
105 #ifdef GLVIS_USE_LIBPNG
106 int SaveAsPNG(
const char *fname,
int w,
int h,
bool is_hidpi,
107 bool with_alpha =
false,
108 std::function<
void(
int,
void*)> get_row =
nullptr);
135 bool SetFont(
const vector<std::string>& patterns,
int height);
136 void SetFont(
const std::string& fn);
void SendExposeEvent()
Send expose event. In our case MyReshape is executed and Draw after it.
void MiddleButtonUp(EventInfo *)
void TouchPinch(SDL_MultiGestureEvent &e)
void SendKeySequence(const char *seq)
Send a sequence of keystrokes to the visualization window.
int Screenshot(const char *fname, bool convert)
Take a screenshot using libtiff, libpng or sdl2.
void LeftButtonDown(EventInfo *event)
void SetLineWidthMS(float width_ms)
VisualizationScene * GetVisualizationScene()
bool SetFont(const vector< std::string > &font_patterns, int height)
void MyExpose(GLsizei w, GLsizei h)
void ThreadsPauseFunc(GLenum state)
void SetUseTexture(int ut)
void SetVisualizationScene(VisualizationScene *scene, int view, const char *keys)
void RightButtonLoc(EventInfo *event)
void AddIdleFunc(void(*Func)(void))
void SDLMainLoop(bool server_mode)
void MiddleButtonDown(EventInfo *event)
void RightButtonUp(EventInfo *)
void LeftButtonLoc(EventInfo *event)
void KeyUpPressed(GLenum state)
void RemoveIdleFunc(void(*Func)(void))
int SaveAsPNG(const char *fname, int w, int h, bool is_hidpi, bool with_alpha, std::function< void(int, void *)> get_row)
void LeftButtonUp(EventInfo *event)
void SetLineWidth(float width)
void KeyRightPressed(GLenum state)
void ResizeWindow(int w, int h)
SdlWindow * GetAppWindow()
void MoveResizeWindow(int x, int y, int w, int h)
void SetLegacyGLOnly(bool status)
void KeyLeftPressed(GLenum state)
void SetWindowTitle(const char *title)
void KeyDownPressed(GLenum state)
int InitVisualization(const char name[], int x, int y, int w, int h)
Initializes the visualization and some keys.
void RunVisualization()
Start the infinite visualization loop.
void SetMultisample(int m)
void MiddleButtonLoc(EventInfo *event)
void CallKeySequence(const char *seq)
void SetUseHiDPI(bool status)
void RightButtonDown(EventInfo *event)