mod_fem_viewer/FemViewer/inc/fv_txt_utls.h File Reference

#include "types.h"
#include "fv_config.h"
#include "fv_inc.h"
#include "RenderParams.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string>
#include <vector>
Include dependency graph for fv_txt_utls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FemViewer::pixel_descr_t
 pixel format descriptor More...
class  FemViewer::GLCore

Namespaces

namespace  FemViewer

Defines

#define FV_DEBUG_GL   1
#define FV_CHECK_ERROR_GL()

Typedefs

typedef struct
FemViewer::pixel_descr_t
FemViewer::pixel_descrptr_t

Enumerations

enum  FemViewer::ePixelFormat {
  FemViewer::PF_UNKNOWN = 0, FemViewer::PF_R8, FemViewer::PF_RG8, FemViewer::PF_RGB8,
  FemViewer::PF_RGBA8, FemViewer::PF_RGBA8_SRGB, FemViewer::PF_BGRA8_SRGB, FemViewer::PF_ALL
}
enum  FemViewer::eShaderType {
  FemViewer::SH_VERTEX = 0x01, FemViewer::SH_GEOMETRY = 0x02, FemViewer::SH_FRAGMENT = 0x04, FemViewer::SH_TESELATOR = 0x08,
  FemViewer::SH_COMPUTE = 0x10
}

Functions

const pixel_descr_t * FemViewer::getPixelFormatDescriptor (const int id)
bool initGLEW (const bool bFlag=false)
bool initGLLists (const GLsizei size)
GLuint initShaders (const char *path_to_vertex_shader, const char *payh_to_fragment_shader)
bool loadFile (const char *path, std::string &source)
GLuint createBuffer (const void *data, unsigned int dataSize, GLenum target, GLenum usage)
GLuint createPixelBuffer (const int width, const int height, GLuint *pbId)
float getTextWidthOnScreen (const std::string &text, 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)
bool __CheckErrorGL (const char *file, const int line)
void print_array (const float array[], size_t size_of_array)
void print_array_vec4f (const float array[], const size_t size_of_array, const size_t offset)
GLuint createQuadGrid (const double orig[], double dims[], double density[], GLuint *nvertces)
GLuint createGrid3D (const float minb[], const float maxb[], const grid_t *drid, GLuint outBuff[])
void drawGrid (const GLuint params[2], const float color[3], const float linew=0.0)
GLuint createColorBar (const FemViewer::colorbar_config_t *cfg, GLuint *buffID)

Variables

const pixel_descr_t FemViewer::pixel_descriptors []

Define Documentation

 
#define FV_CHECK_ERROR_GL (  ) 
Value:
if( false == __CheckErrorGL( __FILE__, __LINE__)) {                 \
        exit(EXIT_FAILURE);                                             \
    }
#define FV_DEBUG_GL   1

Function Documentation

bool __CheckErrorGL ( const char *  file,
const int  line 
) [inline]
GLuint createBuffer ( const void data,
unsigned int  dataSize,
GLenum  target,
GLenum  usage 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createColorBar ( const FemViewer::colorbar_config_t cfg,
GLuint *  buffID 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createGrid3D ( const float  minb[],
const float  maxb[],
const grid_t drid,
GLuint  outBuff[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createPixelBuffer ( const int  width,
const int  height,
GLuint *  pbId 
)

Here is the call graph for this function:

GLuint createQuadGrid ( const double  orig[],
double  dims[],
double  density[],
GLuint *  nvertces 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void drawGrid ( const GLuint  params[2],
const float  color[3],
const float  linew = 0.0 
)
void drawPlane ( const float *  points,
const float *  scale,
unsigned int  size 
)

Here is the caller graph for this function:

void drawString ( const char *  str,
int  x,
int  y,
float  color[4],
void font 
)
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 
)
float getTextWidthOnScreen ( const std::string &  text,
void pCurrentFont 
)

Here is the caller graph for this function:

bool initGLEW ( const bool  bFlag = false  ) 

Here is the caller graph for this function:

bool initGLLists ( const GLsizei  size  ) 
GLuint initShaders ( const char *  path_to_vertex_shader,
const char *  payh_to_fragment_shader 
)

Here is the call graph for this function:

bool loadFile ( const char *  path,
std::string &  source 
)

Here is the caller graph for this function:

void print_array ( const float  array[],
size_t  size_of_array 
) [inline]

Here is the caller graph for this function:

void print_array_vec4f ( const float  array[],
const size_t  size_of_array,
const size_t  offset 
) [inline]

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1