vga_addtiming(3) Svgalib User Manual vga_addtiming(3)NAME
vga_guesstiming - calculate a timing line for the given resolution
SYNOPSIS
#include <vga.h>
int vga_guesstiming(int x, int y, int clue, int arg);
DESCRIPTION
Calculates a timing line for a x*y resolution, according to the value of clue.
CALCULATION METHODS
If clue is 0, then the aspect ratio for the requested mode ( x:y ) must be 4:3. A mode with the same aspect ratio closest to the requested,
while still having a higher resolution is found, and then scaled down to the requested mode.
If clue is 1, then the aspect ratio for the requested mode ( x:y ) must be 4:3. A mode with the same aspect ratio closest to the requested,
while still having a lower resolution is found, and then scaled down to the requested mode.
BUGS
No guarantee that a modeline will be created, or that a created modeline will be usefull is given.
SEE ALSO vga_addmode(3)vga_addtiming(3)addmodetest(6)AUTHOR
This manual page was written by Matan Ziv-Av
Svgalib (>= 1.4.0) 7 April 1999 vga_addtiming(3)
Check Out this Related Man Page
GLUPERSPECTIVE(3G)GLUPERSPECTIVE(3G)NAME
gluPerspective - set up a perspective projection matrix
C SPECIFICATION
void gluPerspective( GLdouble fovy,
GLdouble aspect,
GLdouble zNear,
GLdouble zFar )
PARAMETERS
fovy Specifies the field of view angle, in degrees, in the y direction.
aspect Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y
(height).
zNear Specifies the distance from the viewer to the near clipping plane (always positive).
zFar Specifies the distance from the viewer to the far clipping plane (always positive).
DESCRIPTION
gluPerspective specifies a viewing frustum into the world coordinate system. In general, the aspect ratio in gluPerspective should match
the aspect ratio of the associated viewport. For example, aspect = 2.0 means the viewer's angle of view is twice as wide in x as it is in
y. If the viewport is twice as wide as it is tall, it displays the image without distortion.
The matrix generated by gluPerspective is multipled by the current matrix, just as if glMultMatrix were called with the generated matrix.
To load the perspective matrix onto the current matrix stack instead, precede the call to gluPerspective with a call to glLoadIdentity.
Given f defined as follows:
f = cotangent(fovy/2)
The generated matrix is
f
------------ 0 0 0
aspect
0 f 0 0
zFar+zNear 2*zFar*zNear
0 0 ----------------------
zNear-zFar zNear-zFar
0 0 -1 0
NOTES
Depth buffer precision is affected by the values specified for zNear and zFar. The greater the ratio of zFar to zNear is, the less effec-
tive the depth buffer will be at distinguishing between surfaces that are near each other. If
r = zFar/zNear
roughly log2(r) bits of depth buffer precision are lost. Because r approaches infinity as zNear approaches 0, zNear must never be set to
0.
SEE ALSO
glFrustum, glLoadIdentity, glMultMatrix, gluOrtho2D
GLUPERSPECTIVE(3G)
Hi,
can some one advice me of a book or online tutorail for some one new to Unix. Right now I only know few commands, and I dont have a clue regarding the different names like Solaris ...etc.
thanks, i think this is a great forum.:) (3 Replies)
new to unix programming havent got a clue and have to write a program for an asignmentit goes as follows
write a program to takes 2 subdirectories as arguments say archarea and myarch, the program must look at eachfile in my area and if it does not existin archarea or is newer than the version in... (5 Replies)
Hey gurus..
I am still struggling with unix..
whats is the equivalent of isspace function in Unix shell scripting.
I came across situation where a variable is a fixed lenth. And if it contains only spaces, then i should flag it as error.
for eg..
vartemp=" "
if isspace(vartemp)... (7 Replies)
can not for the life of me workout which BTLD to load allways shows no HDD available can any one give me a clue
tried
hpsas
aacraid
lsil
a160
a320
server is a ML310 G4 ?????:confused::confused: (7 Replies)
Hi,
I' using bash and I would like to use "bc" to compute the ratio of of two numbers and assign the ratio to a variable.
The numbers are in a file, e.g.
196.304492
615.348986
Any idea how to do it?
N.B. I cannot change the file to have 196.304492 / 615.348986 as the file is produced by... (14 Replies)
Hi guys,
I'm supposed to write a program to display the "view source" content of a web page...I have no clue were to start...
please help me guys.... (9 Replies)
Dear All,
Does anyone has any clue for the errors below? I have tried resetting the ILOM but to no avail. No luck in locating /var/lock either.
*** Problem encountered thru NetManagement port. Not able to try it out using console yet.
-> start /SP/console
Are you sure you want... (3 Replies)
One of our database server is suddenly became very slow and i have no clue what to do .Please help. I m sharing the performance inforamtion regarding cpu,harddisk,ram .
########CPU Information########
Machine Uptime Information:
uptime
10:25:06 up 16:50, 1 user, load average: 5.84, 5.65,... (10 Replies)
ok, so i have no clue why this script i wrote spits out these bizarre characters:
i cant even copy and paste those characters on here because it just doesn't show up properly.
my question is, using sed, how can i get rid of all characters that aren't normal?
echo "abnormal characters" |... (4 Replies)
Hi,
I have been thinking of how to script this but i have no clue at all..
Could someone please help me out or give me some idea on this?
I would like to group those lines with the same first variable in each line, joining the 2nd variables with commas.
Let's say i have the following input.
... (8 Replies)
Hello Everyone!
I am new on this forum and this is my first post. I wish to apologize for my, not canonical, English.
I would like to solve this problem but I have no clue of how do it!I will be grateful if someone could help me!
I have a table like this:
gene TF1 TF2 TF3 TF4
gene1 1 2 3 4... (5 Replies)
hi,
i am having a file which contains the below content, i need to take the word count of if and print the file name also
inputfile.txt
file_name1.txt,type_name1.txt
file_name2.txt,type_name2.txt
i would need the word count of the files like this
if file_name*.txt
then
wc -l... (10 Replies)
Can anyone give me a clue why this code doesn't work as expected? The function count_collatz_step() take one parameter which a number that need to calculate collatz until it reaches 1. The func should return steps it takes.
#
# Count steps of collatz conjecture takes, until the number reach 1.... (8 Replies)