OpenGL a Xwindows

Krata krata na matfyz.cz
Čtvrtek Duben 25 10:45:02 CEST 2002


Zdravim,
 pisu program pod linuxem pomoci SDL a OpenGL doma vse funguje tak jak ma. 
Ale ve skole kdyz se pokusim zkompilovat a spustit tak to zarve

ERROR! Couldn't set 800x600x32 video mode : X11 driver not configured with 
OpenGL

nevite nekdo kde mam hledat problem? Diky

Krata

P.s. v priloze zasilam XF86Config-4
------------- další část ---------------
# XFree86 4.0 configuration generated by Xconfigurator

Section "ServerLayout"
	Identifier "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

# By default, Red Hat Linux 6.0 and later use xfs

Section "Files"
	FontPath "unix/:7100"
EndSection

# Module loading section

Section "Module"
	Load  "dbe"		# Double-buffering
	Load  "GLcore"		# OpenGL support
	Load  "dri"		# Direct rendering infrastructure
	Load  "glx"		# OpenGL X protocol interface
	Load  "extmod"		# Misc. required extensions
	Load  "v4l"		# Video4Linux
	# Load  "pex5"		# PHIGS for X 3D environment (obsolete)
	# Load  "record"	# X event recorder
	# Load  "xie"		# X Image Extension (obsolete)
	# You only need the following two modules if you do not use xfs.
	# Load  "freetype"	 # TrueType font handler
	# Load  "type1"		# Adobe Type 1 font handler
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option      "XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Device" "/dev/mouse"
	Option      "Protocol" "PS/2"
	Option      "Emulate3Buttons" "off"
	Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier "ADI MicroScan 6P"
	VendorName "Unknown"
	ModelName  "Unknown"
	HorizSync  30-94
	VertRefresh 48-160
	Option "dpms"
EndSection

Section "Device"
	Identifier "Matrox Millennium G400"
	Driver "mga"
	BoardName "Unknown"
EndSection

Section "Device"
	Identifier "Linux Frame Buffer"
	Driver "fbdev"
	BoardName "Unknown"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device "Matrox Millennium G400"
	Monitor "ADI MicroScan 6P"
	DefaultDepth 24
	Subsection "Display"
		Depth 24
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	Subsection "Display"
		Depth 16
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	Subsection "Display"
		Depth 8
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection


Další informace o konferenci Linux