📜  如何隐藏光标 sdl - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:10.790000             🧑  作者: Mango

代码示例1
SDL_Cursor *cursor; /* Make this variable visible in the point
                       where you exit the program */
int32_t cursorData[2] = {0, 0};
cursor = SDL_CreateCursor((Uint8 *)cursorData, (Uint8 *)cursorData, 8, 8, 4, 4);
SDL_SetCursor(cursor);