Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set_projection_viewport(3alleg4) [opendarwin man page]

set_projection_viewport(3alleg4)				  Allegro manual				  set_projection_viewport(3alleg4)

NAME
set_projection_viewport - Sets the viewport used to scale the output of persp_project(). Allegro game programming library. SYNOPSIS
#include <allegro.h> void set_projection_viewport(int x, int y, int w, int h); DESCRIPTION
Sets the viewport used to scale the output of the persp_project() function. Pass the dimensions of the screen area you want to draw onto, which will typically be 0, 0, SCREEN_W, and SCREEN_H. Also don't forget to pass an appropriate aspect ratio to get_camera_matrix later. The width and height you specify here will determine how big your viewport is in 3d space. So if an object in your 3D space is w units wide, it will fill the complete screen when you run into it (i.e., if it has a distance of 1.0 after the camera matrix was applied. The fov and aspect-ratio parameters to get_camera_matrix also apply some scaling though, so this isn't always completely true). If you pass -1/-1/2/2 as parameters, no extra scaling will be performed by the projection. SEE ALSO
persp_project(3alleg4), get_camera_matrix(3alleg4), ex3d(3alleg4), excamera(3alleg4), exquat(3alleg4), exscn3d(3alleg4), exstars(3alleg4), exzbuf(3alleg4) Allegro version 4.4.2 set_projection_viewport(3alleg4)

Check Out this Related Man Page

set_projection_viewport(3alleg4)				  Allegro manual				  set_projection_viewport(3alleg4)

NAME
set_projection_viewport - Sets the viewport used to scale the output of persp_project(). Allegro game programming library. SYNOPSIS
#include <allegro.h> void set_projection_viewport(int x, int y, int w, int h); DESCRIPTION
Sets the viewport used to scale the output of the persp_project() function. Pass the dimensions of the screen area you want to draw onto, which will typically be 0, 0, SCREEN_W, and SCREEN_H. Also don't forget to pass an appropriate aspect ratio to get_camera_matrix later. The width and height you specify here will determine how big your viewport is in 3d space. So if an object in your 3D space is w units wide, it will fill the complete screen when you run into it (i.e., if it has a distance of 1.0 after the camera matrix was applied. The fov and aspect-ratio parameters to get_camera_matrix also apply some scaling though, so this isn't always completely true). If you pass -1/-1/2/2 as parameters, no extra scaling will be performed by the projection. SEE ALSO
persp_project(3alleg4), get_camera_matrix(3alleg4), ex3d(3alleg4), excamera(3alleg4), exquat(3alleg4), exscn3d(3alleg4), exstars(3alleg4), exzbuf(3alleg4) Allegro version 4.4.2 set_projection_viewport(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies