CSE 167 Lecture Notes - Lecture 6: Opengl, Instruction Set, Network Packet

37 views2 pages

Document Summary

Encapsulates many basic functions of 2d/3d graphics. Or, start with images, and apply pixel operations. Images may go through texture memory before rasterizing. Bresenham"s line drawing - effectively drawing a 1-px wide line. Reason: different vertices and different pixels are independent of each other! When you draw, you write to some buffer (front, depth) New opengl: use c++ stl templates to make stacks as needed! Camera always at origin, pointing in -z direction. In old opengl, matrices are column-major and right-multiply top of stack (last transform in code is first applied) Values are uniform (not associated with any, applies to all vertices) 4f: 4 floating-point numbers v: vector (array) Projectionpos: where the matrix is relative to the shader. &projection[0][0] - pointer to the matrix itself. Can include normal c code and attributes like the colors. Attributes must be set before the vertex. Glflush() forces client to send network packet. Glfinish() waits for ack, sparingly use synchronization.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers