#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cstring>
#include <string>
#include <fstream>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include "Enums.h"
#include "fv_exception.h"
#include "fv_txt_utls.h"
#include "Log.h"
Namespaces | |
namespace | FemViewer |
Defines | |
#define | GL_SHADING_LANGUAGE_VERSION 0x8B8C |
Functions | |
bool | initGLEW (const bool bFlag) |
bool | FemViewer::initGLLists (const GLsizei size) |
bool | loadFile (const char *path, std::string &source) |
GLuint | initShaders (const char *path_to_vertex_shader, const char *path_to_fragment_shader) |
GLuint | createBuffer (const void *data, unsigned int dataSize, GLenum target, GLenum usage) |
GLuint | createTextureBuffer (const int width, const int height, const int format, const void *data, const unsigned buffer) |
GLuint | createPixelBuffer (const int width, const int height, GLuint *pboId) |
float | getTextWidthOnScreen (const std::string &pText, void *pCurrentFont) |
void | drawText (const std::string &pText, float pXMin, float pYMin, float pXMax, float pYMax, int pFontSize, void *pCurrentFont, bool pAutoLineBreak, bool pFlagCentered) |
void | drawText3D (const std::string &pText, float pX, float pY, float pZ, void *pCurrentFont) |
void | drawString (const char *str, int x, int y, float color[4], void *font) |
void | drawPlane (const float *points, const float *scale, unsigned int size) |
GLuint | createQuadGrid (const double orig[], double dims[], double density[], GLuint *nvertces) |
GLuint | createGrid3D (const float minb[], const float maxb[], const grid_t *grid, GLuint outBuff[]) |
void | drawGrid (const GLuint params[2], const float color[3], const float line_width) |
void | drawLabels (const std::vector< FemViewer::label_t > &labels, void *font, const float color[4]) |
GLuint | createColorBar (const FemViewer::colorbar_config_t *cfg, GLuint *bufferID) |
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C |
GLuint createBuffer | ( | const void * | data, | |
unsigned int | dataSize, | |||
GLenum | target, | |||
GLenum | usage | |||
) |
GLuint createColorBar | ( | const FemViewer::colorbar_config_t * | cfg, | |
GLuint * | bufferID | |||
) |
GLuint createGrid3D | ( | const float | minb[], | |
const float | maxb[], | |||
const grid_t * | grid, | |||
GLuint | outBuff[] | |||
) |
GLuint createPixelBuffer | ( | const int | width, | |
const int | height, | |||
GLuint * | pboId | |||
) |
GLuint createQuadGrid | ( | const double | orig[], | |
double | dims[], | |||
double | density[], | |||
GLuint * | nvertces | |||
) |
GLuint createTextureBuffer | ( | const int | width, | |
const int | height, | |||
const int | format, | |||
const void * | data, | |||
const unsigned | buffer | |||
) |
void drawGrid | ( | const GLuint | params[2], | |
const float | color[3], | |||
const float | line_width | |||
) |
void drawLabels | ( | const std::vector< FemViewer::label_t > & | labels, | |
void * | font, | |||
const float | color[4] | |||
) |
void drawPlane | ( | const float * | points, | |
const float * | scale, | |||
unsigned int | size | |||
) |
void drawText | ( | const std::string & | pText, | |
float | pXMin, | |||
float | pYMin, | |||
float | pXMax, | |||
float | pYMax, | |||
int | pFontSize, | |||
void * | pCurrentFont, | |||
bool | pAutoLineBreak, | |||
bool | pFlagCentered | |||
) |
float getTextWidthOnScreen | ( | const std::string & | pText, | |
void * | pCurrentFont | |||
) |
bool initGLEW | ( | const bool | bFlag | ) |
GLuint initShaders | ( | const char * | path_to_vertex_shader, | |
const char * | path_to_fragment_shader | |||
) |
bool loadFile | ( | const char * | path, | |
std::string & | source | |||
) |