Of small applications lacks a variety of features

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ariety of features GLUI Very C way to do things (C++ is better (will get to that later...)) For personal projects use Qt C++ and Object Oriented Super popular (all KDE programs) Signal/Slots are really nice QML We won’t be using this in this class Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 9 / 31 C++ Quick Introduction Incredibly Complicated Language Lots of nice features piled ontop of each other Definitely not C Object Orientation References const Correctness Templates (Generics) Combination of things seen in C and Java Do you guys want to hear about this? Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 10 / 31 C++: Classes Basically structs with member functions Difference is default privacy Different syntax for accessing depending on context Constructors and Destructors Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 11 / 31 C++: Classes struct Foo () { Foo ( int a_ =0) : a ( a_ ) {} int f () { return 1;} int a ; static int g () { return 3;} } class Bar () { public : Bar () : myfoo ( new Foo (4) ) {} ~ Bar () { delete myfoo ;} Foo * myfoo ; int g () { return -1;} } Foo foo ; Bar * bar_ptr = new Bar () ; bar_ptr - > myfoo . a = foo . f () ; foo . a = bar_ptr - &...
View Full Document

This document was uploaded on 02/12/2014.

Ask a homework question - tutors are online