GsSetOrign

Sets the drawing offset of the screen origin

void GsSetOrign (
        int x,
        int y
)

Arguments

x Screen origin position X
y Screen origin position Y

Return Value

None.

Explanation

The screen origin specified by (x, y) is set as the drawing offset in the global variable POSITION.
GsSetOrign() sets the drawing offset in the global variable POSITION but it does not set it in the GPU. In other words, the new offset will not take effect until a function such as GsSetDrawBuffOffset() that sets the GPU drawing offset is called. The offset value in the global variable POSITION is valid until GsSetOrgn() is called again. The offset specified by (x, y) is relative within the double buffer. In other words, the values (x, y) are added to the double buffer base. In reality, the offset is set by the offx and offy members of the global variable POSITION.

Notes

The third argument of GsInitGraph() determines whether the offset is executed by GTE or by GPU and is specified using GsOFSGTE (#defined as 0 in libps.h) or GsOFSGPU (#defined as 4 in libps.h), respectively.