Programming :: OpenGL And GLUT In Fedora 12: Windows Too Small And Don't Resize

Mar 15, 2010

I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw after being resized.

I get slightly better behavior with the SGI sample program mentioned in the same book, 'checkers.c'. Again, the initial size is too small, but at least it will resize and redraw the checkerboards entirely inside the resized window. What is going on here? Is this some bug in glut? I can't see anything obviously wrong in their glut initialization, which looks like:

int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (350, 150);

[code]...

Then again, since I am such a newbie to glut, I am not sure I would recognize what, if anything, they did wrong. what ARE the valid and useful command line parameters I could have passed to the main() above?

View 12 Replies


ADVERTISEMENT

Programming :: OpenGL (non-GLUT) On OSX Lion Using C++

Jul 25, 2011

I'm looking for some sample C++ code that uses OpenGL on XCode 4.1 for OSX Lion. All I have found so far are GLUT and/or Objective-C samples. Has anyone come across something similar to what I'm after? I really just need something simple that allows me to open a window, or start in fullscreen.

View 1 Replies View Related

Slackware :: GLUT: Fatal Error In Torcs-bin: Failed To Create OpenGL Rendering Context

Jan 15, 2011

I have installed torcs (using sbopkg) and the dependencies plib, OpenAL, and freealut. On running it I get

Quote:

GLUT: Fatal Error in torcs-bin: failed to create OpenGL rendering context.

I am not sure if it is relevant but this is xorg.conf

Quote:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Jul 28 19:48:57 PDT 2009
Section "ServerLayout"

[code]....

View 9 Replies View Related

Ubuntu :: Resize Window Border To Small?

May 13, 2010

This isn't a HUGE deal, just a little annoying. When I move the cursor to the edge of a window to resize it, i only get the resize arrow in a very small area and it takes me several tries to get it just right. Is there anyway to broaden the resize area threshold or something?

View 9 Replies View Related

Ubuntu Installation :: Resize Cursor Location Impossibly Small In 10.10?

Oct 15, 2010

I've now upgraded three machines from 10.04 to 10.10, and they all share the same problem: resizing windows its next to impossible! I am finding it very difficult to place the mouse cursor at the exact point on the bottom right of any window to cause it to change to the resize cursor.

View 4 Replies View Related

Fedora :: Wine/opengl/32 To 64 Bit - Cannot Load OpenGL When Try To Start WoW

Oct 19, 2009

I just upgraded from FC8 (32-bit) to FC11 (64-bit). In doing so, I backed up my entire World of Warcraft folder so I could try to avoid having to download and install it all over again. However, I've now reinstalled wine (64-bit now), and the nvidia drivers from the rpmfusion repos (also 64-bit), and when I try to start WoW, it says it cannot load OpenGL. I'm wondering if anyone knows what's up, and if there's a solution that doesn't involve reinstalling WoW.

View 7 Replies View Related

Fedora :: App Windows Minimize To Small Squares

Jan 6, 2010

I' seem to have turned on something that causes application windows to collapse into small squares in the upper left hand portion of the screen .I was playing with desktop effects but have turned that off .

View 3 Replies View Related

Fedora :: Resize Windows Too Big For Screen?

Sep 22, 2009

I am using an Asus 1000HE with a 10 inch screen.

I just installed Fedora 11 with Gnome.

Windows often go beyond the edge of the screen so I cannot see everything that is in the window or press buttons when I need to.

I know I can drag the windows around with [Alt] but that is not a longterm solution.

So how do I resize windows to fit the screen ?

View 4 Replies View Related

Fedora :: Small Windows Size Virtual Machine

Jan 12, 2010

i am running now Windows 7 on a virtual machine.the windows of the VM remains small.when i resize the windows,, the desktop window of windows 7 remains the same size.is that normall?i would like to have a reasaneble windows size of the VM

View 4 Replies View Related

Fedora :: Unable Resize All Windows On F15 And Gnome?

Sep 4, 2011

I just installed Fedora 15 on a new laptop and I am using the Genome desktop. There are some applications that will not the allow you to resize the window. Some examples of this are Libre Calc, gnome-tweak-tool and a window in the package installer. In all these cases when you right mouse click on the top of the active window the "Resize ALT-F8" is grayed out and is not selectable.This is real problem when I'm trying to install the Perl-IDE-for-vim package because the list of dependencies is so long the confirm button is off the bottom of the screen and I cannot resize the window to get to it. There is also a similar issue with the tweak tool where some of the field are chopped off because the window is too small. As for Libre Calc I just don't like a window taking up the whole desktop.

View 4 Replies View Related

Fedora Installation :: No Minimize Or Resize Buttons For All Windows

Jun 7, 2011

I did an upgrade to F15 from F13. I was a little skeptical about the upgrade (I had always reinstalled in the past), but so far it seems to have worked great. What were people thinking when they released Gnome? No minimize of resize buttons for all windows (I downloaded the F15 updates today, and there doesn't seem to be any updates to fix the situation). Ridiculous. Who did any testing on this? Once a fix was found for that, I find Gnome to be non intuitive and inefficient regarding response time and user key strokes required.

View 1 Replies View Related

General :: Can't Resize Konsole Windows Size In Fedora / Make It Possible?

Aug 1, 2011

This may seem to be a silly question, but I googled along
and found that most of relevant complaints was about
a bug in video card driver.

My problem is -
For some unknown reason, I can't resize the Konsole window horizontally while I can still resize vertically. This is bad as the corrent width of Konsole window fills the entire screen!

View 1 Replies View Related

Programming :: 3D Programming - Difference Between JOGL And C++ OpenGL Programming?

Aug 27, 2010

I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.

So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?

Why and what is the main difference between them?

View 4 Replies View Related

Fedora :: Incomplete XFCE Install - Windows Don't Have Minimize - Resize And Close Icons On Top Bar

Jul 8, 2011

I installed XFCE on a machine built with the FC 15 LXDE based live CD using yum groupinstall XFCE. I got a usable XFCE session, but after a period of use, some things have gone missing. The windows don't have minimize,resize and close icons on the top bar. The settings selection for "Window Manager Tweaks" doesn't start any program. The programs that are open in the users session are not saved, even though that option is checked. Can this be explained by corruption of a single file somewhere? Or should I re-install XFCE again.

View 4 Replies View Related

Fedora :: 14 + Windows On BART PE Run All Win32 Apps Like CAD - Dialup Client - Burn Iso - Install On A Small Harddisk - Boot Up

Nov 5, 2010

I want to move entirely from windows to linux. My college has ubuntu running on the labs. But i have a thing fr Fedora. I want to install fedora & run win32 apps via wine. But just in case some apps need strictly windoze i was wondering about using BART PE as a minimal windows application use. Does BARTPE run all win32 apps like CAD, dialup client, burn iso, install on a small harddisk,boot up with linux?

View 2 Replies View Related

Programming :: GTK DrawArea - Possible To Use OpenGL?

May 30, 2010

I am writing a program that needs to display graphs. Right now I am using Cairo which works well except it is really slow. Drawing 1200 lines locks up my computer (i7 CPU and gtx285 graphics card). I only found examples to use Cairo with GTK DrawingArea can I use OpenGL instead or is there a way to cairo to run faster?

View 1 Replies View Related

Debian Programming :: Cannot Get OpenGL Version

Feb 28, 2014

Running under Debian oldstable:

#include<stdio.h>
#include<stdlib.h>
#include <GL/glew.h>
#include <GL/glext.h>
#include <GL/glut.h>
void init(){
const GLubyte* version = glGetString​(GL_VERSION​); // line 2338
printf("version = %s
", version);
...

The gcc compiler gives me:

code.c: In function ‘init’:
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program

Do I need an additional header?

View 4 Replies View Related

Programming :: Difference Between Xlib And OpenGL?

Dec 6, 2008

I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?

View 2 Replies View Related

Programming :: Start Programming Using OpenGL?

Sep 1, 2010

I want to start progrmming in opengl. I am using Ubuntu. do I need just to install a GLUT package.if yes how to do it

View 5 Replies View Related

Programming :: Maintain A Cross Platform SDL/OpenGL Project?

Feb 11, 2011

I have made a game for Linux and want to release it soon (on linux & windows). Since its SDL/OpenGL and I dont do any special things it shouldn't be much porting to windows. Problem: Maintaining I have the game in code::blocks SDL project on Linux. So I got wine and installed wined Code::Blocks with MingW so I can cross compile on Linux. For another game I made, I used a Makefile which has "if" statements to set up compile variables. And everything else is totally identical to windows & linux (code, source files and etc...)

With codeblocks I got used to not having to worry about makefiles and it did well and I better focused on making the game rather than everytime a new file is added editing the makefile and etc... Is there some nice ways to have a cross platform environment to make it easy to make games for Linux and windows. I'm thinking of making my own system of auto-generating a makefile (essentially upgrading the setup I have for my previous game to auto add entry's to the makefile & some other stuff).

View 2 Replies View Related

Debian Programming :: OpenGL Version Verification - Compiler Error

Feb 5, 2015

I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?

View 4 Replies View Related

General :: Check If Have Glut.h Installed?

Mar 31, 2011

os: fedora 9how do i check if i have glut.h installed?actually,i tried to run graphics programs in KdevelopC/C++ ,i included the line#include<GL/glut.h>and it shows an error at all functions including glut functions when i compiled it.also i have gone to project->project options->configure options->linker flags->-lglut

View 2 Replies View Related

Programming :: Is There Small IDE For Lconsole?

Oct 4, 2010

i'm learning C now, later C++. using DJGPP isn't so nice on MS-DOS yet, no LFNs etc. and other limitations that is only one terminal, no multitasking etc.is there a small IDE for linux console? (i'm using a celeron 333 atm). for C it would be sufficient i guess?what i would need is a wide documentation, help on .h files, includes etc.on MS-DOS i use RHIDE. later on i might use eclipse or code::blocks. read another thread about c/c++ IDE.

View 14 Replies View Related

Programming :: How To Write Small Project With C++

Dec 29, 2010

I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:

Code:

#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {

[code]....

View 1 Replies View Related

General :: Fullscreen GLUT App Display Blanks After Approx 30 Minutes

Apr 6, 2010

I'm running a fullscreen display app which shows a 3D scene in OpenGL. The app runs continiously throughout the day unattended.

Here's the sequence of events in how it's loaded:

1) The computer is turned on, and boots into F11 (x86_64)

2) A non-privileged user is automatically logged on

3) The gnome startup applications list contains an entry for a loading script

4) The loading script waits for the network interface (eth0) to ccome up, then starts the display program

This all works just fine, except that about 30 minutes after the computer is turned on and the app starts running, the screen blanks out. Attaching a mouse to the system and moving it around a bit brings the screen back to life. Likewise, SSHing into the machine and killing / restarting the application works as well. Once either of these fixes has been performed, it runs flawlessly for the rest of the day.

I have turned off the screen saver, and set the power settings for monitor shutdown to 'never'.

View 2 Replies View Related

Programming :: Create A Small Array Of 3x3 Arrays?

Jul 12, 2009

I'm trying to figure how to create an small array of 3x3 arrays such I can do

Code:

SUM1(i) = SUM1(i) + SUM2

where i goes from 1 to 8 and SUM2 is a 3x3 array.

View 2 Replies View Related

Programming :: Small Projects In C++ Using Advanced Features

Feb 4, 2010

Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,

What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also

View 4 Replies View Related

Programming :: Send File With FTP From Small Version?

Feb 9, 2011

I have this problem.I need to do this:I got a small version of Linux installed in some small devices. These devices come from the provider with this small version of Linux installed.This devices should send data to some other machine in the internet. I have tested wput for this purpose with a PC which has an Ubuntu version 10 and it works fine. However, when I try wput in the small device, I get an error. It seems that the wput might need some libraries to work with the small version of Linux installed in the small device.The fact of using wput or not is optional. I just need being able to send files through ftp with this small version of Linux.The thing is that to be able to run wput in this small version of Linux, it seems that many of the needed libraries were missing. So what I did was just install all the needed libraries. But still the wput program fails in its first line.

View 14 Replies View Related

Programming :: Small Awk Script: Critiques Sought?

Mar 18, 2010

I'm not fluent in awk and would like to improve so seek critiques of this effort: stylistic, functional, whatever ...

Code:
#!/usr/bin/awk -f
BEGIN {
FS = "="
tab = " "

[Code]...

View 23 Replies View Related

Ubuntu :: Gui Windows Won't Resize Correctly

Apr 23, 2010

i will occasionally open a gui program, for example an ip address calc and a dvd burning program, and the bottom of the window is cut off by the screen; the screen size is put on the most applicable, detectable screen size; on both a netbook with a small rectangular screen and an older desktop with CRT monitor that is square; i could see both of these having issues beyond my own user-stupidity, so i thought i would ask: how do i get to the bottom of the window to see very crucial info? i hover the mouse on the top until it changes to a horiz bar, but it wont drag down;

- i hover mouse on bottom but it wont change to bar/arrow;

- i hover on corners to make an angle bar/arrow but it will only resize horizontally;

- i right click the top border and hit "resize" but it will only resize horizontally;

this, as well as getting my touchpad settings to stay the same after poweroff have been the bane of my existence edit: sometimes these posts are simply echo chambers for me to listen to my own ineptitude; i found how to save the touchpad settings,re-edit: i did not actually fix the touchpad, but i have posted elsewhere so as to not cross-post.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved