16
Graphics / Re: Color changing 2 times
« on: November 14, 2013, 02:17:27 pm »
Thanks, now I can make the outline ![Smiley :)](https://www.sfml-dev.org/forums/Smileys/default/smiley.gif)
But, Is to make the outline, using only shader?
![Smiley :)](https://www.sfml-dev.org/forums/Smileys/default/smiley.gif)
But, Is to make the outline, using only shader?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
void Font2(bool render);
bool render2;
Font::Font() :
m_library (NULL),
m_face (NULL),
m_streamRec(NULL),
m_refCount (NULL)
{
}
Font::Font() :
m_library (NULL),
m_face (NULL),
m_streamRec(NULL),
m_refCount (NULL)
{
render2 =true; //Add
}
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_NORMAL, 0, 1);
// Convert the glyph to a bitmap (i.e. rasterize it)
if(render2){
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_NORMAL, 0, 1);
}else{
FT_Glyph_To_Bitmap(&glyphDesc, FT_RENDER_MODE_MONO, 0, 1);
}
float x,y,hspeed,vspeed;
hspeed = 0.3;
vspeed = 0.1;
x += hspeed;
y += vspeed;
Player_s.setPosition((int)x,(int)y);