The Game Kit Table of Contents | The Game Kit Index |
Library: libgame.so
The Game Kit has just one global function, set_mouse_position(). It should be called only by an application that has control of the screen through a BWindowScreen object. Otherwise, the kit borrows constants and types defined for graphics card drivers and by other parts of the BeOS. Those that are not documented for the Interface and Support Kits are listed here.
Declared in: <game/WindowScreen.h>
|
Moves the cursor hot spot to (x, y) in the screen coordinate system, where x is a left-to-right index to a pixel column and y is a top-to-bottom index to a pixel row. The origin of the coordinate system is the left top pixel of the display area of the main screen.
This function should be called only while the application has a direct connection to the frame buffer through a BWindowScreen object.
Declared in: <add-ons/graphics/GraphicsCard.h>
B_CRT_CONTROL |
B_GAMMA_CONTROL |
B_FRAME_BUFFER_CONTROL |
These flags report the driver's ability to control the CRT display, make gamma corrections, and permit nonstandard configurations of the frame buffer. Only the last has any meaning for the Game Kit.
See also: CardInfo()
Declared in: <game/GameSoundDefs.h>
These are the various possible game sound attributes. The range between B_GS_FIRST_PRIVATE_ATTRIBUTE and B_GS_FIRST_USER_ATTRIBUTE are reserved; if you need custom attributes, use values B_GS_FIRST_USER_ATTRIBUTE and higher.
Declared in: <add-ons/graphics/GraphicsCard.h>
|
This structure is used to report the current configuration of the frame buffer.
See also: FrameBufferInfo()
Declared in: <add-ons/graphics/GraphicsCard.h>
|
This is the general type declaration for a graphics card hook function. Specific hook functions will in fact declare various sets of arguments and all return a status_t error code rather than void.
See also: CardHookAt(), "Graphics Card Hook Functions" on page18
Declared in: <add-ons/graphics/GraphicsCard.h>
|
Drivers use this structure to supply information about themselves and the current configuration of the frame buffer to the Application Server and the BWindowScreen class.
See also: CardInfo()
Declared in: <game/GameSoundDefs.h>
|
Defines an attribute. An attribute consists of an attribute number from gs_attributes, a duration indicating the period of time, in microseconds, over which the attribute's change takes effect, and a target value. Additional flags can be specified for the attribute as well; these vary depending on the attribute.
Currently, there are no flags defined for any of the predefined attributes.
Declared in: <game/GameSoundDefs.h>
|
Describes the possible values the attribute can take. The granularity field indicates how finely the value of the attribute can be controlled, and minimum and maximum specify the minimum and maximum values the attribute can take on.
Declared in: <game/GameSoundDefs.h>
|
This structure describes the format of a game sound. The format enum lists the possible sound sample formats supported by the Game Kit:
Constant | Meaning |
B_GS_U8 | Unsigned 8-bit integer. |
B_GS_S16 | Signed 16-bit integer. |
B_GS_F | Floating-point. |
B_GS_S32 | Signed 32-bit integer. |
Declared in: <game/GameSoundDefs.h>
|
This type is used for game sound ID numbers.
The Game Kit Table of Contents | The Game Kit Index |
Copyright © 2000 Be, Inc. All rights reserved..