null
US
Iniciar Sesión
Regístrate Gratis
Registro
Hemos detectado que no tienes habilitado Javascript en tu navegador. La naturaleza dinámica de nuestro sitio requiere que Javascript esté habilitado para un funcionamiento adecuado. Por favor lee nuestros
términos y condiciones
para más información.
Siguiente
Copiar y Editar
¡Debes iniciar sesión para completar esta acción!
Regístrate gratis
5262364
Implementing Buttons
Descripción
Map about how button class should work.
Sin etiquetas
tic-tac-toe
game-development
sdl
class
sdl game development
self learning
Mapa Mental por
Tanay Karnik
, actualizado hace más de 1 año
Más
Menos
Creado por
Tanay Karnik
hace más de 8 años
4
0
0
Resumen del Recurso
Implementing Buttons
Drawing Buttons
Create the text texture with the point size, color and font
Query the texture for its width and height
Add the padding to its width and height to get the size of the background rectangle
Draw the background rectangle
Draw the text on top
Variables
Private Variables
bgColor
textColor
width
height
Public Variables
bgColorActivated
bgColorNormal
x
y
textColorNormal
textColorActivated
text
Updating Buttons
When the user clicks on the button
toggle the bgColor
toggle the textColor
toggle the state of the button
Mostrar resumen completo
Ocultar resumen completo
¿Quieres crear tus propios
Mapas Mentales
gratis
con GoConqr?
Más información
.
Similar
HISTOGRAMS
Elliot O'Leary
SCLY 2 - Education - Topic 1 - Class (AQA AS sociology)
Tahlie
Class Differences In Educational Achievement
phoebebutler
English Functional Grammar Section 2 (Basics) Quiz
Martin Tilney
Bible Mind Map
moffahe
CAGE and Crime
Gabzay
Kingdom Animalia
9.schilleraldino
Inequalities
Yasmine King
Explanations Class inequalities
Yasmine King
Explanations of class inequalities
Yasmine King
Class differences in education
Phoebe Fletcher
Explorar la Librería