UNTITLED LOCAL UNTITLED
NAME
glutInitWindowSize -- Requests future windows to open at a given width/height..
LIBRARY
OpenGLUT - window
SYNOPSIS
#include <openglut.h>
void
glutInitWindowSize(int width, int height);
PARAMETERS
width Width of future windows.
height Height of future windows.
DESCRIPTION
This function allows you to request initial dimensions for future windows.
There is a callback function to inform you of the new window shape (whether initially opened, changed by your glutReshapeWindow() request, or
changed directly by the user).
SEE ALSO glutReshapeWindow(3)glutInit(3)glutInitWindowPosition(3)glutInitDisplayMode(3)glutInitDisplayString(3)glutReshapeFunc(3)glutGet(3)
Epoch
Check Out this Related Man Page
UNTITLED LOCAL UNTITLED
NAME
glutSetOption -- Allows you to set some general state/option variables.
LIBRARY
OpenGLUT - state
SYNOPSIS
#include <openglut.h>
void
glutSetOption(GLenum eWhat, int value);
PARAMETERS
eWhat Enumerated parameter ID.
value New value.
DESCRIPTION
Stores the value into a state variable named by eWhat.
Allowable eWhat IDs are:
- GLUT_ACTION_ON_WINDOW_CLOSE
Controls what happens when a window is closed by the user or system. GLUT_ACTION_EXIT will immediately exit the application (default).
GLUT_ACTION_GLUTMAINLOOP_RETURNS will immediately return from the main loop. GLUT_ACTION_CONTINUE_EXECUTION will contine execution of
remaining windows.
- GLUT_INIT_DISPLAY_MODE
An alternate way to set the display mode for a new window.
- GLUT_INIT_WINDOW_HEIGHT
An alternate way to set the height of new windows.
- GLUT_INIT_WINDOW_WIDTH
An alternate way to set the width of new windows.
- GLUT_INIT_WINDOW_X
An alternate way to set the initial horizontal position of new windows.
- GLUT_INIT_WINDOW_Y
An alternate way to set the initial vertical position of new windows.
- GLUT_RENDERING_CONTEXT
Set to either GLUT_CREATE_NEW_CONTEXT or GUT_USE_CURRENT_CONTEXT to indicate whether to share the current OpenGL rendering context with
new windows.
- GLUT_WINDOW_CURSOR
Attempt to set the current window 's current cursor as if by glutSetCursor().
SEE ALSO glutGet(3)glutDeviceGet(3)glutGetModifiers(3)glutLayerGet(3)glutDestroyWindow(3)glutMainLoop(3)glutInitDisplayMode(3)glutInit(3)glutInitWindowSize(3)glutInitWindowPosition(3)glutSetCursor(3)
Epoch
hi,
I get this error when I compile my source on mac Leopard.
is because I need to configure openGL path ?
Monitor.h:15:60: error: GL/glut.h: No such file or directory
Monitor.h:16:60: error: GL/gl.h: No such file or directory
Monitor.C: In function 'void display2()':
Monitor.C:77:... (0 Replies)
Hi,
how to insert JPEG on each side of the cube using OpenGL in C language..
i have a program for cube..
guide me ,,,
any answer will valuable.. (3 Replies)
Hi,
How to decode an image using openGL library libjpeg ..
which are the steps needed to do this using C language..
actually my work is to decode the image, store it on the buffer,
and place it on cube surface..
please guide me,,any answer will appreciated .. (8 Replies)
Hi i have written the code for star shape object in opengl but i am not able to bevel the edges of the star.COULD SOMEONE KINDLY TELL ME HOW CAN I BEVEL THE EDGES OF THE STAR SHAPE.
#include <windows.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <freeglut.h>
#include... (1 Reply)