mirror of
https://github.com/schrodinger/pymol-open-source.git
synced 2026-06-04 20:04:21 +08:00
- 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
43 lines
1.5 KiB
C
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
|