CS 330 Lecture 24 – Memory, Polymorphism, and Higher-order Functions
Agenda what ?s program this polymorphism in C function pointers callbacks with GLUT TODO 1/4 sheet: read A Malloc Tutorial. Program This Write a preprocessor macro named EZMALLOC that shortens the code needed to allocate a block of memory. Programmers will invoke it with something like: Code multireturn.c poly.c torus.c Haiku
CS 455 Lecture 16 – Specular Lighting
Agenda what ?s diffuse lighting in eye space positional lighting vs. directional lighting specular reflection TODO As a lab exercise, implement specular lighting in the specular project. Send me a screenshot of your scene with highlights. Haiku
CS 330 Lecture 23 – Cisms Cont’d
Agenda what ?s enums and type safety the C preprocessor macro danger dynamic memory allocation memory allocation When do I dynamically allocate memory? When you don’t know how much memory you’ll need at compile time. You don’t know if the size depends on a function parameter. When you allocate memory within a function but need the […]
CS 455 Lecture 15 – Camera
Agenda what ?s where we are adding another space a Camera class the lookat function the view matrix advancing rolling pitching TODO Start Seen Scene homework. The specification’s not written yet, but it can be summarized as follows: construct a scene comprised of at least five lit and textured objects. As a lab exercise, add […]
CS 330 Lecture 22 – Cisms
Agenda what ?s exams Cisms types sizeof headers dynamic memory allocation addressable memory polymorphism Code sizes.cpp blackjack.c Haiku
Weirc – Magnets
I was not feeling confident before I started this assignment, because I know very little about the framework, and how the projection, theta, shift, scale parameters work with the matrix… Nothing was clear at that point, but now I’m grateful of this assignment, because it forced me to learn how those pieces intertwined and worked […]
alibraay-Magnets
Overall things went well. I have a few glitches when the magnets interact from the sides, but for the most part everything seems to be working as expected. The approach I took was to tackle the geometry first. I wanted to get all the rectangles placed and colored in the right way before I would […]
lavaniaj – HW2
I started with creating the magnet struct. The sudo code was easy to follow. After this I focused on getting two rectangles to display and making them different colors. The biggest hurdle with the assignment was figuring out how to color 2 separate rectangles. Once I figured that out all the other things fell into […]
CS 330 Lecture 21 – Languages Working Together
Agenda what ?s calling C++ from Java strings arrays TODO Start the Timbre homework. Code Main.java Logger.java native.cpp makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not spaces. Main.java Imogene.java native.cpp native.cpp.ours makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not […]
Magnets – gutzmejr
I first wanted to get a rectangle appearing on the screen, then duplicate it, add the poles and interaction, and finally add the flipping functionality. I ended up doing the last two steps the other way around, with adding color thrown in there somewhere. The biggest obstacles besides initially getting the rectangle to appear was […]