Blender  V3.3
Macros | Functions | Variables
GHOST_WindowSDL.cpp File Reference
#include "GHOST_WindowSDL.h"
#include "SDL_mouse.h"
#include "glew-mx.h"
#include "GHOST_ContextSDL.h"
#include <cassert>

Go to the source code of this file.

Macros

#define sdl_std_cursor_WIDTH_xterm   9
 
#define sdl_std_cursor_HEIGHT_xterm   16
 
#define sdl_std_cursor_HOT_X_xterm   -3
 
#define sdl_std_cursor_HOT_Y_xterm   -7
 
#define sdl_std_cursor_WIDTH_watch   16
 
#define sdl_std_cursor_HEIGHT_watch   16
 
#define sdl_std_cursor_HOT_X_watch   -15
 
#define sdl_std_cursor_HOT_Y_watch   -7
 
#define sdl_std_cursor_WIDTH_umbrella   16
 
#define sdl_std_cursor_HEIGHT_umbrella   16
 
#define sdl_std_cursor_HOT_X_umbrella   -7
 
#define sdl_std_cursor_HOT_Y_umbrella   -12
 
#define sdl_std_cursor_WIDTH_top_side   15
 
#define sdl_std_cursor_HEIGHT_top_side   16
 
#define sdl_std_cursor_HOT_X_top_side   -6
 
#define sdl_std_cursor_HOT_Y_top_side   -14
 
#define sdl_std_cursor_WIDTH_top_right_corner   16
 
#define sdl_std_cursor_HEIGHT_top_right_corner   16
 
#define sdl_std_cursor_HOT_X_top_right_corner   -13
 
#define sdl_std_cursor_HOT_Y_top_right_corner   -14
 
#define sdl_std_cursor_WIDTH_top_left_corner   16
 
#define sdl_std_cursor_HEIGHT_top_left_corner   16
 
#define sdl_std_cursor_HOT_X_top_left_corner   0
 
#define sdl_std_cursor_HOT_Y_top_left_corner   -14
 
#define sdl_std_cursor_WIDTH_sb_v_double_arrow   9
 
#define sdl_std_cursor_HEIGHT_sb_v_double_arrow   15
 
#define sdl_std_cursor_HOT_X_sb_v_double_arrow   -3
 
#define sdl_std_cursor_HOT_Y_sb_v_double_arrow   -8
 
#define sdl_std_cursor_WIDTH_sb_h_double_arrow   15
 
#define sdl_std_cursor_HEIGHT_sb_h_double_arrow   9
 
#define sdl_std_cursor_HOT_X_sb_h_double_arrow   -7
 
#define sdl_std_cursor_HOT_Y_sb_h_double_arrow   -4
 
#define sdl_std_cursor_WIDTH_right_side   16
 
#define sdl_std_cursor_HEIGHT_right_side   15
 
#define sdl_std_cursor_HOT_X_right_side   -13
 
#define sdl_std_cursor_HOT_Y_right_side   -7
 
#define sdl_std_cursor_WIDTH_right_ptr   10
 
#define sdl_std_cursor_HEIGHT_right_ptr   16
 
#define sdl_std_cursor_HOT_X_right_ptr   -7
 
#define sdl_std_cursor_HOT_Y_right_ptr   -14
 
#define sdl_std_cursor_WIDTH_question_arrow   11
 
#define sdl_std_cursor_HEIGHT_question_arrow   16
 
#define sdl_std_cursor_HOT_X_question_arrow   -4
 
#define sdl_std_cursor_HOT_Y_question_arrow   -8
 
#define sdl_std_cursor_WIDTH_pirate   16
 
#define sdl_std_cursor_HEIGHT_pirate   16
 
#define sdl_std_cursor_HOT_X_pirate   -7
 
#define sdl_std_cursor_HOT_Y_pirate   -4
 
#define sdl_std_cursor_WIDTH_left_side   16
 
#define sdl_std_cursor_HEIGHT_left_side   15
 
#define sdl_std_cursor_HOT_X_left_side   0
 
#define sdl_std_cursor_HOT_Y_left_side   -7
 
#define sdl_std_cursor_WIDTH_left_ptr   10
 
#define sdl_std_cursor_HEIGHT_left_ptr   16
 
#define sdl_std_cursor_HOT_X_left_ptr   -8
 
#define sdl_std_cursor_HOT_Y_left_ptr   -14
 
#define sdl_std_cursor_WIDTH_crosshair   16
 
#define sdl_std_cursor_HEIGHT_crosshair   16
 
#define sdl_std_cursor_HOT_X_crosshair   -7
 
#define sdl_std_cursor_HOT_Y_crosshair   -8
 
#define sdl_std_cursor_WIDTH_bottom_side   15
 
#define sdl_std_cursor_HEIGHT_bottom_side   16
 
#define sdl_std_cursor_HOT_X_bottom_side   -6
 
#define sdl_std_cursor_HOT_Y_bottom_side   -1
 
#define sdl_std_cursor_WIDTH_bottom_right_corner   16
 
#define sdl_std_cursor_HEIGHT_bottom_right_corner   16
 
#define sdl_std_cursor_HOT_X_bottom_right_corner   -13
 
#define sdl_std_cursor_HOT_Y_bottom_right_corner   -1
 
#define sdl_std_cursor_WIDTH_bottom_left_corner   16
 
#define sdl_std_cursor_HEIGHT_bottom_left_corner   16
 
#define sdl_std_cursor_HOT_X_bottom_left_corner   0
 
#define sdl_std_cursor_HOT_Y_bottom_left_corner   -1
 
#define sdl_std_cursor_WIDTH_arrow   16
 
#define sdl_std_cursor_HEIGHT_arrow   16
 
#define sdl_std_cursor_HOT_X_arrow   -13
 
#define sdl_std_cursor_HOT_Y_arrow   -14
 
#define DEF_CURSOR(name, ind)
 

Functions

static SDL_Cursor * sdl_ghost_CreateCursor (const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
 
static SDL_Cursor * getStandardCursorShape (GHOST_TStandardCursor shape)
 

Variables

static unsigned char sdl_std_cursor_mask_xterm []
 
static unsigned char sdl_std_cursor_xterm []
 
static unsigned char sdl_std_cursor_mask_watch []
 
static unsigned char sdl_std_cursor_watch []
 
static unsigned char sdl_std_cursor_mask_umbrella []
 
static unsigned char sdl_std_cursor_umbrella []
 
static unsigned char sdl_std_cursor_mask_top_side []
 
static unsigned char sdl_std_cursor_top_side []
 
static unsigned char sdl_std_cursor_mask_top_right_corner []
 
static unsigned char sdl_std_cursor_top_right_corner []
 
static unsigned char sdl_std_cursor_mask_top_left_corner []
 
static unsigned char sdl_std_cursor_top_left_corner []
 
static unsigned char sdl_std_cursor_mask_sb_v_double_arrow []
 
static unsigned char sdl_std_cursor_sb_v_double_arrow []
 
static unsigned char sdl_std_cursor_mask_sb_h_double_arrow []
 
static unsigned char sdl_std_cursor_sb_h_double_arrow []
 
static unsigned char sdl_std_cursor_mask_right_side []
 
static unsigned char sdl_std_cursor_right_side []
 
static unsigned char sdl_std_cursor_mask_right_ptr []
 
static unsigned char sdl_std_cursor_right_ptr []
 
static unsigned char sdl_std_cursor_mask_question_arrow []
 
static unsigned char sdl_std_cursor_question_arrow []
 
static unsigned char sdl_std_cursor_mask_pirate []
 
static unsigned char sdl_std_cursor_pirate []
 
static unsigned char sdl_std_cursor_mask_left_side []
 
static unsigned char sdl_std_cursor_left_side []
 
static unsigned char sdl_std_cursor_mask_left_ptr []
 
static unsigned char sdl_std_cursor_left_ptr []
 
static unsigned char sdl_std_cursor_mask_crosshair []
 
static unsigned char sdl_std_cursor_crosshair []
 
static unsigned char sdl_std_cursor_mask_bottom_side []
 
static unsigned char sdl_std_cursor_bottom_side []
 
static unsigned char sdl_std_cursor_mask_bottom_right_corner []
 
static unsigned char sdl_std_cursor_bottom_right_corner []
 
static unsigned char sdl_std_cursor_mask_bottom_left_corner []
 
static unsigned char sdl_std_cursor_bottom_left_corner []
 
static unsigned char sdl_std_cursor_mask_arrow []
 
static unsigned char sdl_std_cursor_arrow []
 
static SDL_Cursor * sdl_std_cursor_array [(int) GHOST_kStandardCursorNumCursors] = {nullptr}
 

Macro Definition Documentation

◆ DEF_CURSOR

#define DEF_CURSOR (   name,
  ind 
)
Value:
{ \
sdl_std_cursor_array[(int)ind] = sdl_ghost_CreateCursor( \
sdl_std_cursor_##name, \
sdl_std_cursor_mask_##name, \
sdl_std_cursor_WIDTH_##name, \
sdl_std_cursor_HEIGHT_##name, \
(sdl_std_cursor_WIDTH_##name + (sdl_std_cursor_HOT_X_##name)) - 1, \
(sdl_std_cursor_HEIGHT_##name + (sdl_std_cursor_HOT_Y_##name)) - 1); \
assert(sdl_std_cursor_array[(int)ind] != nullptr); \
} \
(void)0
static SDL_Cursor * sdl_ghost_CreateCursor(const Uint8 *data, const Uint8 *mask, int w, int h, int hot_x, int hot_y)
static SDL_Cursor * sdl_std_cursor_array[(int) GHOST_kStandardCursorNumCursors]
SyclQueue void void size_t num_bytes void

◆ sdl_std_cursor_HEIGHT_arrow

#define sdl_std_cursor_HEIGHT_arrow   16

Definition at line 484 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_bottom_left_corner

#define sdl_std_cursor_HEIGHT_bottom_left_corner   16

Definition at line 471 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_bottom_right_corner

#define sdl_std_cursor_HEIGHT_bottom_right_corner   16

Definition at line 458 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_bottom_side

#define sdl_std_cursor_HEIGHT_bottom_side   16

Definition at line 445 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_crosshair

#define sdl_std_cursor_HEIGHT_crosshair   16

Definition at line 432 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_left_ptr

#define sdl_std_cursor_HEIGHT_left_ptr   16

Definition at line 419 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_left_side

#define sdl_std_cursor_HEIGHT_left_side   15

Definition at line 406 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_pirate

#define sdl_std_cursor_HEIGHT_pirate   16

Definition at line 393 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_question_arrow

#define sdl_std_cursor_HEIGHT_question_arrow   16

Definition at line 380 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_right_ptr

#define sdl_std_cursor_HEIGHT_right_ptr   16

Definition at line 367 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_right_side

#define sdl_std_cursor_HEIGHT_right_side   15

Definition at line 354 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_sb_h_double_arrow

#define sdl_std_cursor_HEIGHT_sb_h_double_arrow   9

Definition at line 341 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_sb_v_double_arrow

#define sdl_std_cursor_HEIGHT_sb_v_double_arrow   15

Definition at line 296 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_top_left_corner

#define sdl_std_cursor_HEIGHT_top_left_corner   16

Definition at line 283 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_top_right_corner

#define sdl_std_cursor_HEIGHT_top_right_corner   16

Definition at line 270 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_top_side

#define sdl_std_cursor_HEIGHT_top_side   16

Definition at line 257 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_umbrella

#define sdl_std_cursor_HEIGHT_umbrella   16

Definition at line 244 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_watch

#define sdl_std_cursor_HEIGHT_watch   16

Definition at line 231 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HEIGHT_xterm

#define sdl_std_cursor_HEIGHT_xterm   16

Definition at line 218 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_arrow

#define sdl_std_cursor_HOT_X_arrow   -13

Definition at line 485 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_bottom_left_corner

#define sdl_std_cursor_HOT_X_bottom_left_corner   0

Definition at line 472 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_bottom_right_corner

#define sdl_std_cursor_HOT_X_bottom_right_corner   -13

Definition at line 459 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_bottom_side

#define sdl_std_cursor_HOT_X_bottom_side   -6

Definition at line 446 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_crosshair

#define sdl_std_cursor_HOT_X_crosshair   -7

Definition at line 433 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_left_ptr

#define sdl_std_cursor_HOT_X_left_ptr   -8

Definition at line 420 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_left_side

#define sdl_std_cursor_HOT_X_left_side   0

Definition at line 407 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_pirate

#define sdl_std_cursor_HOT_X_pirate   -7

Definition at line 394 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_question_arrow

#define sdl_std_cursor_HOT_X_question_arrow   -4

Definition at line 381 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_right_ptr

#define sdl_std_cursor_HOT_X_right_ptr   -7

Definition at line 368 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_right_side

#define sdl_std_cursor_HOT_X_right_side   -13

Definition at line 355 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_sb_h_double_arrow

#define sdl_std_cursor_HOT_X_sb_h_double_arrow   -7

Definition at line 342 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_sb_v_double_arrow

#define sdl_std_cursor_HOT_X_sb_v_double_arrow   -3

Definition at line 297 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_top_left_corner

#define sdl_std_cursor_HOT_X_top_left_corner   0

Definition at line 284 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_top_right_corner

#define sdl_std_cursor_HOT_X_top_right_corner   -13

Definition at line 271 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_top_side

#define sdl_std_cursor_HOT_X_top_side   -6

Definition at line 258 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_umbrella

#define sdl_std_cursor_HOT_X_umbrella   -7

Definition at line 245 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_watch

#define sdl_std_cursor_HOT_X_watch   -15

Definition at line 232 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_X_xterm

#define sdl_std_cursor_HOT_X_xterm   -3

Definition at line 219 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_arrow

#define sdl_std_cursor_HOT_Y_arrow   -14

Definition at line 486 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_bottom_left_corner

#define sdl_std_cursor_HOT_Y_bottom_left_corner   -1

Definition at line 473 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_bottom_right_corner

#define sdl_std_cursor_HOT_Y_bottom_right_corner   -1

Definition at line 460 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_bottom_side

#define sdl_std_cursor_HOT_Y_bottom_side   -1

Definition at line 447 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_crosshair

#define sdl_std_cursor_HOT_Y_crosshair   -8

Definition at line 434 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_left_ptr

#define sdl_std_cursor_HOT_Y_left_ptr   -14

Definition at line 421 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_left_side

#define sdl_std_cursor_HOT_Y_left_side   -7

Definition at line 408 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_pirate

#define sdl_std_cursor_HOT_Y_pirate   -4

Definition at line 395 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_question_arrow

#define sdl_std_cursor_HOT_Y_question_arrow   -8

Definition at line 382 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_right_ptr

#define sdl_std_cursor_HOT_Y_right_ptr   -14

Definition at line 369 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_right_side

#define sdl_std_cursor_HOT_Y_right_side   -7

Definition at line 356 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_sb_h_double_arrow

#define sdl_std_cursor_HOT_Y_sb_h_double_arrow   -4

Definition at line 343 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_sb_v_double_arrow

#define sdl_std_cursor_HOT_Y_sb_v_double_arrow   -8

Definition at line 298 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_top_left_corner

#define sdl_std_cursor_HOT_Y_top_left_corner   -14

Definition at line 285 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_top_right_corner

#define sdl_std_cursor_HOT_Y_top_right_corner   -14

Definition at line 272 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_top_side

#define sdl_std_cursor_HOT_Y_top_side   -14

Definition at line 259 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_umbrella

#define sdl_std_cursor_HOT_Y_umbrella   -12

Definition at line 246 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_watch

#define sdl_std_cursor_HOT_Y_watch   -7

Definition at line 233 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_HOT_Y_xterm

#define sdl_std_cursor_HOT_Y_xterm   -7

Definition at line 220 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_arrow

#define sdl_std_cursor_WIDTH_arrow   16

Definition at line 483 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_bottom_left_corner

#define sdl_std_cursor_WIDTH_bottom_left_corner   16

Definition at line 470 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_bottom_right_corner

#define sdl_std_cursor_WIDTH_bottom_right_corner   16

Definition at line 457 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_bottom_side

#define sdl_std_cursor_WIDTH_bottom_side   15

Definition at line 444 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_crosshair

#define sdl_std_cursor_WIDTH_crosshair   16

Definition at line 431 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_left_ptr

#define sdl_std_cursor_WIDTH_left_ptr   10

Definition at line 418 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_left_side

#define sdl_std_cursor_WIDTH_left_side   16

Definition at line 405 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_pirate

#define sdl_std_cursor_WIDTH_pirate   16

Definition at line 392 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_question_arrow

#define sdl_std_cursor_WIDTH_question_arrow   11

Definition at line 379 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_right_ptr

#define sdl_std_cursor_WIDTH_right_ptr   10

Definition at line 366 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_right_side

#define sdl_std_cursor_WIDTH_right_side   16

Definition at line 353 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_sb_h_double_arrow

#define sdl_std_cursor_WIDTH_sb_h_double_arrow   15

Definition at line 340 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_sb_v_double_arrow

#define sdl_std_cursor_WIDTH_sb_v_double_arrow   9

Definition at line 295 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_top_left_corner

#define sdl_std_cursor_WIDTH_top_left_corner   16

Definition at line 282 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_top_right_corner

#define sdl_std_cursor_WIDTH_top_right_corner   16

Definition at line 269 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_top_side

#define sdl_std_cursor_WIDTH_top_side   15

Definition at line 256 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_umbrella

#define sdl_std_cursor_WIDTH_umbrella   16

Definition at line 243 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_watch

#define sdl_std_cursor_WIDTH_watch   16

Definition at line 230 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_WIDTH_xterm

#define sdl_std_cursor_WIDTH_xterm   9

Definition at line 217 of file GHOST_WindowSDL.cpp.

Function Documentation

◆ getStandardCursorShape()

static SDL_Cursor* getStandardCursorShape ( GHOST_TStandardCursor  shape)
static

◆ sdl_ghost_CreateCursor()

static SDL_Cursor* sdl_ghost_CreateCursor ( const Uint8 *  data,
const Uint8 *  mask,
int  w,
int  h,
int  hot_x,
int  hot_y 
)
static

Definition at line 493 of file GHOST_WindowSDL.cpp.

References data, mask(), surface, w(), x, and y.

Referenced by GHOST_WindowSDL::setWindowCustomCursorShape().

Variable Documentation

◆ sdl_std_cursor_array

SDL_Cursor* sdl_std_cursor_array[(int) GHOST_kStandardCursorNumCursors] = {nullptr}
static

Definition at line 489 of file GHOST_WindowSDL.cpp.

Referenced by getStandardCursorShape().

◆ sdl_std_cursor_arrow

unsigned char sdl_std_cursor_arrow[]
static
Initial value:
= {
0x00, 0x30, 0x00, 0x3c, 0x00, 0x1f, 0xc0, 0x1f, 0xf0, 0x0f, 0xfc, 0x0f, 0xc0, 0x07, 0xe0, 0x07,
0x70, 0x03, 0x38, 0x03, 0x1c, 0x01, 0x0e, 0x01, 0x07, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 479 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_bottom_left_corner

unsigned char sdl_std_cursor_bottom_left_corner[]
static
Initial value:
= {
0x03, 0x00, 0x03, 0x00, 0x23, 0x08, 0x23, 0x04, 0x23, 0x02, 0x23, 0x01, 0xa3, 0x00, 0x63, 0x00,
0xe3, 0x0f, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, 0xff, 0x3f, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 466 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_bottom_right_corner

unsigned char sdl_std_cursor_bottom_right_corner[]
static
Initial value:
= {
0x00, 0x30, 0x00, 0x30, 0x04, 0x31, 0x08, 0x31, 0x10, 0x31, 0x20, 0x31, 0x40, 0x31, 0x80, 0x31,
0xfc, 0x31, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0xff, 0x3f, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 453 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_bottom_side

unsigned char sdl_std_cursor_bottom_side[]
static
Initial value:
= {
0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x44, 0x04, 0x48, 0x02,
0x50, 0x01, 0xe0, 0x00, 0x40, 0x00, 0x00, 0x00, 0xff, 0x1f, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 440 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_crosshair

unsigned char sdl_std_cursor_crosshair[]
static
Initial value:
= {
0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x7f, 0xff,
0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00,
}

Definition at line 427 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_left_ptr

unsigned char sdl_std_cursor_left_ptr[]
static
Initial value:
= {
0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0xfe, 0x00,
0xfe, 0x00, 0x3e, 0x00, 0x36, 0x00, 0x62, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00,
}

Definition at line 414 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_left_side

unsigned char sdl_std_cursor_left_side[]
static
Initial value:
= {
0x03, 0x00, 0x03, 0x00, 0x83, 0x00, 0x43, 0x00, 0x23, 0x00, 0x13, 0x00, 0xfb, 0x3f, 0x13,
0x00, 0x23, 0x00, 0x43, 0x00, 0x83, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 401 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_arrow

unsigned char sdl_std_cursor_mask_arrow[]
static
Initial value:
= {
0x00, 0xe0, 0x00, 0xf8, 0x00, 0xfe, 0x80, 0x7f, 0xe0, 0x7f, 0xf8, 0x3f, 0xfc, 0x3f, 0xfc, 0x1f,
0xe0, 0x1f, 0xf0, 0x0f, 0xf8, 0x0f, 0x7c, 0x07, 0x3e, 0x07, 0x1f, 0x02, 0x0e, 0x00, 0x04, 0x00,
}

Definition at line 475 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_bottom_left_corner

unsigned char sdl_std_cursor_mask_bottom_left_corner[]
static
Initial value:
= {
0x0f, 0x00, 0x0f, 0x00, 0xef, 0x30, 0xef, 0x38, 0xef, 0x1c, 0xef, 0x0e, 0xef, 0x07, 0xef, 0x03,
0xef, 0x3f, 0xef, 0x3f, 0xef, 0x3f, 0x0f, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
}

Definition at line 462 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_bottom_right_corner

unsigned char sdl_std_cursor_mask_bottom_right_corner[]
static
Initial value:
= {
0x00, 0xf0, 0x00, 0xf0, 0x0c, 0xf7, 0x1c, 0xf7, 0x38, 0xf7, 0x70, 0xf7, 0xe0, 0xf7, 0xc0, 0xf7,
0xfc, 0xf7, 0xfc, 0xf7, 0xfc, 0xf7, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
}

Definition at line 449 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_bottom_side

unsigned char sdl_std_cursor_mask_bottom_side[]
static
Initial value:
= {
0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xcc, 0x19, 0xdc, 0x1d,
0xf8, 0x0f, 0xf0, 0x07, 0xe0, 0x03, 0xc0, 0x01, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f,
}

Definition at line 436 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_crosshair

unsigned char sdl_std_cursor_mask_crosshair[]
static
Initial value:
= {
0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01,
}

Definition at line 423 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_left_ptr

unsigned char sdl_std_cursor_mask_left_ptr[]
static
Initial value:
= {
0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00, 0xff, 0x00, 0xff, 0x01,
0xff, 0x03, 0xff, 0x03, 0x7f, 0x00, 0xf7, 0x00, 0xf3, 0x00, 0xe0, 0x01, 0xe0, 0x01, 0xc0, 0x00,
}

Definition at line 410 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_left_side

unsigned char sdl_std_cursor_mask_left_side[]
static
Initial value:
= {
0x0f, 0x00, 0x0f, 0x00, 0x0f, 0x03, 0x8f, 0x03, 0xcf, 0x01, 0xef, 0x00, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xef, 0x00, 0xcf, 0x01, 0x8f, 0x03, 0x0f, 0x03, 0x0f, 0x00, 0x0f, 0x00,
}

Definition at line 397 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_pirate

unsigned char sdl_std_cursor_mask_pirate[]
static
Initial value:
= {
0xf0, 0x03, 0xf8, 0x07, 0xfc, 0x0f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfc, 0x0f, 0xf8, 0x07, 0xf1, 0x83,
0xf1, 0xe3, 0xf3, 0xf3, 0xef, 0x39, 0x1e, 0x1e, 0xe0, 0x01, 0xfe, 0xc7, 0xff, 0xff, 0x0f, 0x7c,
}

Definition at line 384 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_question_arrow

unsigned char sdl_std_cursor_mask_question_arrow[]
static
Initial value:
= {
0xf8, 0x00, 0xfc, 0x01, 0xfe, 0x03, 0xff, 0x07, 0x8f, 0x07, 0x9f, 0x07, 0xde, 0x07, 0xfc, 0x03,
0xf8, 0x01, 0xf8, 0x00, 0xf8, 0x00, 0xfc, 0x01, 0xfe, 0x03, 0xfc, 0x01, 0xf8, 0x00, 0x70, 0x00,
}

Definition at line 371 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_right_ptr

unsigned char sdl_std_cursor_mask_right_ptr[]
static
Initial value:
= {
0x00, 0x03, 0x80, 0x03, 0xc0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0xf8, 0x03, 0xfc, 0x03, 0xfe, 0x03,
0xff, 0x03, 0xff, 0x03, 0xf8, 0x03, 0xbc, 0x03, 0x3c, 0x03, 0x1e, 0x00, 0x1e, 0x00, 0x0c, 0x00,
}

Definition at line 358 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_right_side

unsigned char sdl_std_cursor_mask_right_side[]
static
Initial value:
= {
0x00, 0xf0, 0x00, 0xf0, 0xc0, 0xf0, 0xc0, 0xf1, 0x80, 0xf3, 0x00, 0xf7, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x00, 0xf7, 0x80, 0xf3, 0xc0, 0xf1, 0xc0, 0xf0, 0x00, 0xf0, 0x00, 0xf0,
}

Definition at line 345 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_sb_h_double_arrow

unsigned char sdl_std_cursor_mask_sb_h_double_arrow[]
static
Initial value:
= {
0x18,
0x0c,
0x1c,
0x1c,
0xfe,
0x3f,
0xff,
0x7f,
0xff,
0x7f,
0xff,
0x7f,
0xfe,
0x3f,
0x1c,
0x1c,
0x18,
0x0c,
}

Definition at line 300 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_sb_v_double_arrow

unsigned char sdl_std_cursor_mask_sb_v_double_arrow[]
static
Initial value:
= {
0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0x7c, 0x00, 0x7c, 0x00, 0x7c,
0x00, 0x7c, 0x00, 0x7c, 0x00, 0xff, 0x01, 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00,
}

Definition at line 287 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_top_left_corner

unsigned char sdl_std_cursor_mask_top_left_corner[]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0xef, 0x3f, 0xef, 0x3f, 0xef, 0x3f,
0xef, 0x03, 0xef, 0x07, 0xef, 0x0e, 0xef, 0x1c, 0xef, 0x38, 0xef, 0x30, 0x0f, 0x00, 0x0f, 0x00,
}

Definition at line 274 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_top_right_corner

unsigned char sdl_std_cursor_mask_top_right_corner[]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xfc, 0xf7, 0xfc, 0xf7, 0xfc, 0xf7,
0xc0, 0xf7, 0xe0, 0xf7, 0x70, 0xf7, 0x38, 0xf7, 0x1c, 0xf7, 0x0c, 0xf7, 0x00, 0xf0, 0x00, 0xf0,
}

Definition at line 261 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_top_side

unsigned char sdl_std_cursor_mask_top_side[]
static
Initial value:
= {
0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, 0xf8, 0x0f,
0xdc, 0x1d, 0xcc, 0x19, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01,
}

Definition at line 248 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_umbrella

unsigned char sdl_std_cursor_mask_umbrella[]
static
Initial value:
= {
0xe8, 0x76, 0xfb, 0xdf, 0xfd, 0x3f, 0xfe, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xcf, 0x79, 0xc0, 0x01,
0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x07, 0xc0, 0x07, 0xc0, 0x07, 0xc0, 0x07, 0x80, 0x03,
}

Definition at line 235 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_watch

unsigned char sdl_std_cursor_mask_watch[]
static
Initial value:
= {
0xfc, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xfe, 0x1f, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfe, 0x1f, 0xfc, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f,
}

Definition at line 222 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_mask_xterm

unsigned char sdl_std_cursor_mask_xterm[]
static
Initial value:
= {
0xef, 0x01, 0xff, 0x01, 0xff, 0x01, 0x7c, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00,
0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xff, 0x01, 0xff, 0x01, 0xef, 0x01,
}

Definition at line 209 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_pirate

unsigned char sdl_std_cursor_pirate[]
static
Initial value:
= {
0xe0, 0x01, 0xf0, 0x03, 0xf8, 0x07, 0xcc, 0x0c, 0xcc, 0x0c, 0xf8, 0x07, 0xf0, 0x03, 0xe0, 0x01,
0xe1, 0x21, 0xe1, 0x61, 0xc2, 0x10, 0x1c, 0x0e, 0xe0, 0x01, 0xf8, 0x47, 0x0f, 0x7c, 0x01, 0x20,
}

Definition at line 388 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_question_arrow

unsigned char sdl_std_cursor_question_arrow[]
static
Initial value:
= {
0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x87, 0x01, 0xc6, 0x01, 0xe0, 0x00, 0x78, 0x00,
0x38, 0x00, 0x28, 0x00, 0x28, 0x00, 0xee, 0x00, 0x6c, 0x00, 0x38, 0x00, 0x10, 0x00, 0x00, 0x00,
}

Definition at line 375 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_right_ptr

unsigned char sdl_std_cursor_right_ptr[]
static
Initial value:
= {
0x00, 0x80, 0x00, 0xc0, 0x00, 0xe0, 0x00, 0xf0, 0x00, 0xf8, 0x00, 0xfc, 0x00, 0xfe, 0x00, 0xff,
0x00, 0xf8, 0x00, 0xd8, 0x00, 0x8c, 0x00, 0x0c, 0x00, 0x06, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 362 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_right_side

unsigned char sdl_std_cursor_right_side[]
static
Initial value:
= {
0x00, 0x30, 0x00, 0x30, 0x40, 0x30, 0x80, 0x30, 0x00, 0x31, 0x00, 0x32, 0xff, 0x37, 0x00,
0x32, 0x00, 0x31, 0x80, 0x30, 0x40, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 349 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_sb_h_double_arrow

unsigned char sdl_std_cursor_sb_h_double_arrow[]
static
Initial value:
= {
0x00,
0x00,
0x08,
0x08,
0x0c,
0x18,
0xfe,
0x3f,
0x0f,
0x78,
0xfe,
0x3f,
0x0c,
0x18,
0x08,
0x08,
0x00,
0x00,
}

Definition at line 320 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_sb_v_double_arrow

unsigned char sdl_std_cursor_sb_v_double_arrow[]
static
Initial value:
= {
0x10, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00, 0x28, 0x00, 0x28, 0x00, 0x28, 0x00, 0x28,
0x00, 0x28, 0x00, 0x28, 0x00, 0x28, 0x00, 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00, 0x10, 0x00,
}

Definition at line 291 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_top_left_corner

unsigned char sdl_std_cursor_top_left_corner[]
static
Initial value:
= {
0xff, 0x3f, 0xff, 0x3f, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, 0xe3, 0x0f, 0x63, 0x00, 0xa3, 0x00,
0x23, 0x01, 0x23, 0x02, 0x23, 0x04, 0x23, 0x08, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 278 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_top_right_corner

unsigned char sdl_std_cursor_top_right_corner[]
static
Initial value:
= {
0xff, 0x3f, 0xff, 0x3f, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0xfc, 0x31, 0x80, 0x31, 0x40, 0x31,
0x20, 0x31, 0x10, 0x31, 0x08, 0x31, 0x04, 0x31, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 265 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_top_side

unsigned char sdl_std_cursor_top_side[]
static
Initial value:
= {
0xff, 0x1f, 0xff, 0x1f, 0x00, 0x00, 0x40, 0x00, 0xe0, 0x00, 0x50, 0x01, 0x48, 0x02, 0x44, 0x04,
0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 252 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_umbrella

unsigned char sdl_std_cursor_umbrella[]
static
Initial value:
= {
0x88, 0x04, 0x20, 0x0a, 0xc9, 0x32, 0xf2, 0x09, 0x4c, 0x06, 0x43, 0x18, 0x40, 0x00, 0x40, 0x00,
0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x01, 0x40, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 239 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_watch

unsigned char sdl_std_cursor_watch[]
static
Initial value:
= {
0xf8, 0x07, 0xf8, 0x07, 0xf8, 0x07, 0xfc, 0x0f, 0x86, 0x18, 0x83, 0x30, 0x81, 0xe0, 0xc1, 0xe1,
0xc1, 0xe1, 0x21, 0xe0, 0x13, 0x30, 0x06, 0x18, 0xfc, 0x0f, 0xf8, 0x07, 0xf8, 0x07, 0xf8, 0x07,
}

Definition at line 226 of file GHOST_WindowSDL.cpp.

◆ sdl_std_cursor_xterm

unsigned char sdl_std_cursor_xterm[]
static
Initial value:
= {
0x00, 0x77, 0x00, 0x1c, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08,
0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x1c, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 213 of file GHOST_WindowSDL.cpp.