From 25c5eac5e6ca1035db1eddd7bea9ac78531da57e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 28 Dec 2023 11:23:49 -0500 Subject: Delete manuals! Good riddance! These are hosted on files.dthompson.us now! --- manuals/chickadee/Viewports.html | 163 --------------------------------------- 1 file changed, 163 deletions(-) delete mode 100644 manuals/chickadee/Viewports.html (limited to 'manuals/chickadee/Viewports.html') diff --git a/manuals/chickadee/Viewports.html b/manuals/chickadee/Viewports.html deleted file mode 100644 index c60adc3..0000000 --- a/manuals/chickadee/Viewports.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - -Viewports (The Chickadee Game Toolkit) - - - - - - - - - - - - - - - - - - - -
-

-Next: , Previous: , Up: Graphics   [Contents][Index]

-
-
-

5.3.15 Viewports

- -

A viewport represents a subset of the screen (or framebuffer). When -rendering a frame, the resulting image will only appear within that -viewport. These aren’t often needed, and Chickadee’s default viewport -occupies the entire screen, but there are certain situations where -they are useful. For example, a split-screen multiplayer game may -render to two different viewports, each occupying a different half of -the screen. -

-

The (chickadee graphics viewport) module provides the following -API: -

-
-
Procedure: make-viewport x y width height [#:clear-color] [#:clear-flags]
-
-

Create a viewport that covers an area of the window starting from -coordinates (x, y) and spanning width x -height pixels. Fill the viewport with clear-color when -clearing the screen. Clear the buffers denoted by the list of symbols -in clear-flags. -

-

Possible values for clear-flags are color-buffer, -depth-buffer, accum-buffer, and stencil-buffer. -

- -
-
Procedure: viewport? obj
-

Return #t if obj is a viewport. -

- -
-
Procedure: viewport-x viewport
-

Return the left edge of viewport. -

- -
-
Procedure: viewport-y viewport
-

Return the bottom edge of viewport. -

- -
-
Procedure: viewport-width viewport
-

Return the width of viewport. -

- -
-
Procedure: viewport-height viewport
-

Return the height of viewport. -

- -
-
Procedure: viewport-clear-color viewport
-

Return the clear color for viewport. -

- -
-
Procedure: viewport-clear-flags viewport
-

Return the list of clear flags for viewport. -

- -
-
Procedure: current-viewport
-

Return the current viewport. -

- -
-
Variable: g:viewport
-

Render state for viewports (see Rendering Engine.) -

- - - - - - -- cgit v1.2.3