08.05.2013 Views

Curso de introducción a videojuegos multiplataforma con SDL

Curso de introducción a videojuegos multiplataforma con SDL

Curso de introducción a videojuegos multiplataforma con SDL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Curso</strong> <strong>de</strong> <strong>introducción</strong> a vi<strong>de</strong>ojuegos <strong>multiplataforma</strong> <strong>con</strong> <strong>SDL</strong><br />

Cola <strong>de</strong> eventos - II<br />

● Para acce<strong>de</strong>r a la cola <strong>de</strong> eventos, lo<br />

que haremos será:<br />

– Actualizarla <strong>con</strong> respecto al SO<br />

– Ir tomando eventos <strong>de</strong> la cola<br />

● Para actualizarla, haremos una llamada<br />

simple a:<br />

– void <strong>SDL</strong>_PumpEvents();<br />

– No se suele hacer, porque su función está<br />

<strong>con</strong>tenida implícitamente en otras<br />

funciones.<br />

© 2004 – Bruno González (STenyaK)<br />

Pablo Orduña (NcTrun)<br />

e-ghost – ESIDE – Universidad <strong>de</strong> Deusto

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!