reworked reparents
[sdlhildon] / sdlhaa / src / SDL_haa.h
index 6549a20..db9c5d2 100644 (file)
@@ -73,7 +73,7 @@ typedef struct HAA_Actor {
 } HAA_Actor;
 
 /** Invoke after SDL_Init.
-       @param flags SDL_FULLSCREEN if you will set a fullscreen video mode.
+       @param flags reserved for future expansion (pass 0)
        @return 0 if SDL_haa was initialized correctly.
   */
 extern DECLSPEC int SDLCALL HAA_Init(Uint32 flags);
@@ -89,6 +89,20 @@ extern DECLSPEC void SDLCALL HAA_Quit();
 */
 extern DECLSPEC int SDLCALL HAA_FilterEvent(const SDL_Event *event);
 
+/** Call after calling SDL_SetVideoMode() if you have any actors created
+  * to ensure they're visible in the new window.
+  * @return 0 if everything went OK.
+  */
+extern DECLSPEC int SDLCALL HAA_SetVideoMode(void);
+
+/** Creates both an animation actor and its associated surface.
+  * @param flags reserved (pass 0)
+  * @param width size of the actor surface
+  * @param height
+  * @param bitsPerPixel depth of the actor surface
+  *    a 32 bpp surface will have an alpha channel.
+  * @return the created HAA_Actor, or NULL if an error happened.
+  */
 extern DECLSPEC HAA_Actor* SDLCALL HAA_CreateActor(Uint32 flags,
        int width, int height, int bitsPerPixel);