Files
pymol-open-source/layer1/FontType.h
Thomas Holder 0562e1ec18 Fix GCC 4.8 and Intel Compiler support
- Fix `pymol::string_format` with `pymol::zstring_view`
- Skip `std::is_trivially_copyable` for GCC 4.8
- Eliminate some compiler warnings

Closes https://github.com/schrodinger/pymol-open-source/issues/163
2021-02-01 12:38:43 +01:00

43 lines
1.5 KiB
C

/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2003 by Warren Lyford Delano of DeLano Scientific.
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice.
F* -------------------------------------------------------------------
G* Please see the accompanying LICENSE file for further information.
H* --------------------------------------------------\-----------------
I* Additional authors of this source file include:
-*
-*
-*
Z* -------------------------------------------------------------------
*/
#ifndef _H_FontType
#define _H_FontType
#include"Font.h"
#include"TypeFace.h"
struct CFontType : public CFont {
CTypeFace* TypeFace;
~CFontType() override;
CFontType(PyMOLGlobals* G, unsigned char* dat, unsigned int len);
const char* RenderOpenGL(const RenderInfo* info, const char* text, float size,
const float* rpos, bool needSize, short relativeMode, bool shouldRender,
CGO* shaderCGO) override;
const char* RenderOpenGLFlat(const RenderInfo* info, const char* text, float size,
const float* rpos, bool needSize, short relativeMode, bool shouldRender,
CGO* shaderCGO) override;
const char* RenderRay(CRay* ray, const char* text, float size, const float* rpos,
bool needSize, short relativeMode) override;
};
CFont *FontTypeNew(PyMOLGlobals * G, unsigned char *dat, unsigned int len);
#endif