1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* Copyright (c) Schrodinger, LLC.
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_Texture
#define _H_Texture
#include "PyMOLGlobals.h"
int TextureInit(PyMOLGlobals * G);
void TextureFree(PyMOLGlobals * G);
/**
* Determines whether the given character is textured.
* @param char_id character id
* @param[out] extent texture extent
*/
bool TextureIsCharTextured(PyMOLGlobals* G, int char_id, float* extent);
void TextureInvalidateTextTexture(PyMOLGlobals * G);
void TextureInitTextTexture(PyMOLGlobals * G);
/**
* Binds the global Text Texture
*/
void TextureBindTexture(PyMOLGlobals* G);
/**
* Allocates a section of the global texture for a new subtexture.
* @param new_texture_width width of the new subtexture
* @param new_texture_height height of the new subtexture
* @param[out] new_texture_posx x position of the new subtexture
* @param[out] new_texture_posy y position of the new subtexture
*/
void TextureGetPlacementForNewSubtexture(PyMOLGlobals * G, int new_texture_width, int new_texture_height, int *new_texture_posx, int *new_texture_posy);
/**
* Fills a new subtexture with the given data.
* @param width width of the new subtexture
* @param height height of the new subtexture
* @param x x position of the new subtexture
* @param y y position of the new subtexture
*/
void TextureFillNewSubtexture(PyMOLGlobals* G, int width, int height, int x, int y, const void* data);
int TextureGetTextTextureSize(PyMOLGlobals * G);
#endif
|