Texture.cpp (pymol-open-source-2.2.0) | : | Texture.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 76 | skipping to change at line 76 | |||
G->Texture = I; | G->Texture = I; | |||
I->ch2tex = OVOneToOne_New(G->Context->heap); | I->ch2tex = OVOneToOne_New(G->Context->heap); | |||
I->text_texture_dim = INIT_TEXTURE_SIZE; | I->text_texture_dim = INIT_TEXTURE_SIZE; | |||
I->text_texture_id = 0; | I->text_texture_id = 0; | |||
I->ypos = I->maxypos = I->num_chars = 0; | I->ypos = I->maxypos = I->num_chars = 0; | |||
I->xpos = POS_START; | I->xpos = POS_START; | |||
return (I ? 1 : 0); | return (I ? 1 : 0); | |||
} | } | |||
static | ||||
void TextureInitTextTextureImpl(PyMOLGlobals *G, int textureSize); | void TextureInitTextTextureImpl(PyMOLGlobals *G, int textureSize); | |||
void TextureInitTextTexture(PyMOLGlobals *G){ | void TextureInitTextTexture(PyMOLGlobals *G){ | |||
TextureInitTextTextureImpl(G, INIT_TEXTURE_SIZE); | TextureInitTextTextureImpl(G, INIT_TEXTURE_SIZE); | |||
} | } | |||
void TextureInvalidateTextTexture(PyMOLGlobals * G){ | void TextureInvalidateTextTexture(PyMOLGlobals * G){ | |||
CTexture *I = G->Texture; | CTexture *I = G->Texture; | |||
if (I->text_texture_id){ | if (I->text_texture_id){ | |||
OVOneToOne_Reset(I->ch2tex); | OVOneToOne_Reset(I->ch2tex); | |||
I->num_chars = 0; | I->num_chars = 0; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |