ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Brindeew <abr@altlinux.ru>
To: ALT Linux community <community@altlinux.ru>
Subject: [Comm] OpenGL programming question (glut and fullscreen)
Date: Mon, 21 Apr 2003 17:05:03 +0400
Message-ID: <20030421130503.GB27250@abr.tool.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]

Hi!

Никто случайно не знает, как перейти в glut в полноэкранный режим? Или
хотя бы подсмотреть в сырцах какой-нибудь программы, как это делается
(именно в glut, потому что программа написана на нем и требуется, как я
понимаю, режим устанавливать именно через glutовские функции, а не
напрямую).

Приложенный к этому письму пример не работает.

Выставите в файле tezt.c в строке glutGameModeString("1152x864:24@94")
свое разрешение, глубину цвета и вертикальную частоту обновления экрана
соответственно, потом программу нужно пересобрать командой make tezt
(Makefile приложен). Должен быть установлен пакет libglut-devel.

У меня программа всегда ругается на то, что режим не поддерживается,
хотя я выставил тот режим, в котором работает X-сервер (как бы его
данные в работающей программе выцепить :(( ).

В исходники quake2 уже смотрел - там они напрямую запрашивают список
modelines от X-сервера и потом выбирают нужный. Если так делать можно
(т.е. если glut после этого не заgluчит :-), то попробую
запрограммировать как в Q2.

P.S. Какие еще программы есть, написанные на C, которые поддерживают
полноэкранный режим и используют OpenGL + glut?

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 245 bytes --]

             reply	other threads:[~2003-04-21 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-21 13:05 Andrey Brindeew [this message]
2003-04-21 13:19 ` Roman Savelyev
2003-04-21 13:51   ` [Comm] " Andrey Brindeew
2003-04-21 17:32 ` [Comm] " Roman Bogorodskiy
2003-04-21 18:26   ` [Comm] " Andrey Brindeew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030421130503.GB27250@abr.tool.ru \
    --to=abr@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git