633
ShowmouseScreen::postLoad ()
635
if (ps.particles.empty ())
640
toggleFunctions (true);
643
ps.vertices_cache.cache = NULL;
644
ps.colors_cache.cache = NULL;
645
ps.coords_cache.cache = NULL;
646
ps.dcolors_cache.cache = NULL;
648
ps.vertices_cache.count = 0;
649
ps.colors_cache.count = 0;
650
ps.coords_cache.count = 0;
651
ps.dcolors_cache.count = 0;
653
ps.vertices_cache.size = 0;
654
ps.colors_cache.size = 0;
655
ps.coords_cache.size = 0;
656
ps.dcolors_cache.size = 0;
658
glGenTextures (1, &ps.tex);
659
glBindTexture (GL_TEXTURE_2D, ps.tex);
661
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
662
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
664
glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, 32, 32, 0,
665
GL_RGBA, GL_UNSIGNED_BYTE, starTex);
666
glBindTexture (GL_TEXTURE_2D, 0);
669
632
ShowmouseScreen::ShowmouseScreen (CompScreen *screen) :
670
633
PluginClassHandler <ShowmouseScreen, CompScreen> (screen),
671
PluginStateWriter <ShowmouseScreen> (this, screen->root ()),
672
634
cScreen (CompositeScreen::get (screen)),
673
635
gScreen (GLScreen::get (screen)),