
Penter
12.05.2016
19:07:51
Что все это
Нашел в сорсах
glViewport( 0.0f, 0.0f, SCREEN_WIDTH, SCREEN_HEIGHT ); // specifies the part of the window to which OpenGL will draw (in pixels), convert from normalised to pixels
glMatrixMode( GL_PROJECTION ); // projection matrix defines the properties of the camera that views the objects in the world coordinate frame. Here you typically set the zoom factor, aspect ratio and the near and far clipping planes
glLoadIdentity( ); // replace the current matrix with the identity matrix and starts us a fresh because matrix transforms such as glOrpho and glRotate cumulate, basically puts us at (0, 0, 0)
glOrtho( 0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, 0, 1 ); // essentially set coordinate system
glMatrixMode( GL_MODELVIEW ); // (default matrix mode) modelview matrix defines how your objects are transformed (meaning translation, rotation and scaling) in your world
glLoadIdentity( ); // same as above comment
Комменты неоч понял


Alex Фэils?︙
12.05.2016
19:09:04
да. Сойдет. Хештеги: #opengl #matrix #fixedpipeline #graphics

Andrey
12.05.2016
19:09:17
Комменты неоч понял
Что тебе именно не понятно? glViewport - устанавлвает размер рабочей области, и т.д.

Google

Penter
12.05.2016
19:09:24


Alex Фэils?︙
12.05.2016
19:09:27
Что все это
Нашел в сорсах
glViewport( 0.0f, 0.0f, SCREEN_WIDTH, SCREEN_HEIGHT ); // specifies the part of the window to which OpenGL will draw (in pixels), convert from normalised to pixels
glMatrixMode( GL_PROJECTION ); // projection matrix defines the properties of the camera that views the objects in the world coordinate frame. Here you typically set the zoom factor, aspect ratio and the near and far clipping planes
glLoadIdentity( ); // replace the current matrix with the identity matrix and starts us a fresh because matrix transforms such as glOrpho and glRotate cumulate, basically puts us at (0, 0, 0)
glOrtho( 0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, 0, 1 ); // essentially set coordinate system
glMatrixMode( GL_MODELVIEW ); // (default matrix mode) modelview matrix defines how your objects are transformed (meaning translation, rotation and scaling) in your world
glLoadIdentity( ); // same as above comment
Это похоже на кусок из метода, обрабатывающего измененип размера окна opengl. glViewport говорит системп, что надо рисовать во всем окне


Penter
12.05.2016
19:09:44
А вот после него это шо все?
Про матрицы

Alex Фэils?︙
12.05.2016
19:09:54
glMatrixMode задает текущую матрицу для преобразований

Penter
12.05.2016
19:10:09

Alex Фэils?︙
12.05.2016
19:10:12
Всякие повороты, масштабирование

Penter
12.05.2016
19:10:23
Или курс годный дай

Alex Фэils?︙
12.05.2016
19:10:29
Нехе наше все
Могу еще методичку вузовскую по оглу кинуть

Andrey
12.05.2016
19:10:48
Там даже на русском часть есть.

Alex Фэils?︙
12.05.2016
19:11:31

Google


Alex Фэils?︙
12.05.2016
19:12:05
Что все это
Нашел в сорсах
glViewport( 0.0f, 0.0f, SCREEN_WIDTH, SCREEN_HEIGHT ); // specifies the part of the window to which OpenGL will draw (in pixels), convert from normalised to pixels
glMatrixMode( GL_PROJECTION ); // projection matrix defines the properties of the camera that views the objects in the world coordinate frame. Here you typically set the zoom factor, aspect ratio and the near and far clipping planes
glLoadIdentity( ); // replace the current matrix with the identity matrix and starts us a fresh because matrix transforms such as glOrpho and glRotate cumulate, basically puts us at (0, 0, 0)
glOrtho( 0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, 0, 1 ); // essentially set coordinate system
glMatrixMode( GL_MODELVIEW ); // (default matrix mode) modelview matrix defines how your objects are transformed (meaning translation, rotation and scaling) in your world
glLoadIdentity( ); // same as above comment
glOrtho устанавливает текущую матрицу в ортографический режим
Ортографический режим - режим, когда при рисовании графона не учитывается перспектива


Penter
12.05.2016
19:14:56
Лоадидентити это шо

Alex Фэils?︙
12.05.2016
19:15:11
glLoadIdentity - загрузить единичную матрицу в текущую
Надеюсь, не надо пояснять, что есть единичная матрица? матрица, на главной диагонали которой единицы, остальные нули
В общем, на матрицах кучу классных эффектов делать можно
В майнкрафте, когда перспективу колбасит - это как раз игра меняет коэффициенты матрицы преобразования

Penter
12.05.2016
19:19:34

Andrey
12.05.2016
19:20:28

Penter
12.05.2016
19:20:39

Alex Фэils?︙
12.05.2016
19:20:39
https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D1%82%D1%80%D0%B8%D1%86%D0%B0

Andrey
12.05.2016
19:21:03
прямоугольная таблица элементов некоторого кольца или поля.
Википедия - это не очень источник)
http://www.youtube.com/watch?v=mSEvJfD1om8
Посмотри вот это.

Alex Фэils?︙
12.05.2016
19:22:11
В общем это таблица чисел
Int matr[2][2]

Astroman
12.05.2016
19:23:10

Andrey
12.05.2016
19:23:12
В общем это таблица чисел
Знать определение не достаточно, нужно понимать как с ними вычисления происходят. Далее знать различные матрицы преобразований и т.д.

Astroman
12.05.2016
19:23:15
Матрица

Google

Alex Фэils?︙
12.05.2016
19:24:01

Andrey
12.05.2016
19:26:19
И это не самое веселье. После надо шейдеры ещё писать)

Alex Фэils?︙
12.05.2016
19:28:35
В fixed pipeline не надо?

Andrey
12.05.2016
19:30:29

Alex Фэils?︙
12.05.2016
19:31:05
И эти лоадИдентити тоже

Penter
12.05.2016
21:40:20

Andrey
12.05.2016
21:41:06

Penter
12.05.2016
21:41:35

Andrey
12.05.2016
21:42:14
C++ кодом
Блин, opengl - это Си библиотека. С глобальным состоянием. Это не C++.
На нём очень тяжело писать красивый код.

Andrei
12.05.2016
21:45:37
Суп, конфа.

Alex Фэils?︙
12.05.2016
21:52:31
Блядь, нахуй вы все приперлись в эту конфу? Поныть, что с++ умирает? Или блядь нормальные вопросы обсуждать?

Andrey
12.05.2016
21:52:47
Или забань. Они слов не понимают.

Alex Фэils?︙
12.05.2016
21:53:09
Да

Admin
ERROR: S client not available

Alex Фэils?︙
12.05.2016
21:53:18
Ты опередил меня

Stanislav
12.05.2016
21:53:35
у плюсов щас один конкурент поидее это раст, но там тоже ен все просто

Penter
12.05.2016
21:53:38
https://en.m.wikipedia.org/wiki/Apache_Jelly

Google

Penter
12.05.2016
21:53:42
Топ язык
10/10
C++ нервно курит
Как бы не говорили

Stanislav
12.05.2016
21:54:23

Penter
12.05.2016
21:54:28
И вот там годнота
Стринги, иммутаблы, гетеры
Пакажи

Stanislav
12.05.2016
21:54:51
Зато есть D
да он как хаскель, вроде есть, а кто на нем пишет? ну кроме Александреску

Alex Фэils?︙
12.05.2016
21:54:54
В цэ шарпе годно биндинги к цэ

Stanislav
12.05.2016
21:55:04

Penter
12.05.2016
21:55:07
Хаскель говно
А D нет

Andrei
12.05.2016
21:58:26
лол.
Про хаскель посмеялся.
Тут хоть кто-нибудь знает хаскель?

Google

Andrey
12.05.2016
21:58:56
https://telegram.me/ru_python

Stanislav
12.05.2016
21:58:57
Пакажи
// #cgo pkg-config: png cairo
// #include <png.h>
import "C"
C.funcname()