DOC PREVIEW
UCSD CSE 125 - Game Development in C++

This preview shows page 1-2-3-4-5-6-7-51-52-53-54-55-56-57-58-102-103-104-105-106-107-108 out of 108 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 108 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1Game Development in C++Paul PedrianaSenior Software EngineerMaxis, Electronic ArtsMarch 15, 19992ContentsCONTENTS......................................................................................................................................................................................2OUR GOAL.......................................................................................................................................................................................4REMEMBER THIS...........................................................................................................................................................................5C++ CHARACTERS .......................................................................................................................................................................6ANDY ACADEMIA ........................................................................................................................................................................6SAMMY C.......................................................................................................................................................................................6PETER PORTABILITY...................................................................................................................................................................6PATTY PLUG-IN ............................................................................................................................................................................7NANCY NIH....................................................................................................................................................................................7GARY GOOD GUY ..........................................................................................................................................................................7TEN WAYS C++ IS NOT ANSI C................................................................................................................................................8C++ COMPILERS .........................................................................................................................................................................10C++ FEATURES FOR GAME PROGRAMMING.....................................................................................................................13CLASSES AND INHERITANCE .....................................................................................................................................................13PUBLIC/PRIVATE/PROTECTED.................................................................................................................................................21INLINING.......................................................................................................................................................................................23POINTERS TO MEMBER FUNCTIONS.......................................................................................................................................24OPERATOR OVERLOADING........................................................................................................................................................26CUSTOM ALLOCATORS..............................................................................................................................................................29STL................................................................................................................................................................................................33STRING CLASS..............................................................................................................................................................................35AUTO-PTR...................................................................................................................................................................................37EXCEPTION HANDLING.............................................................................................................................................................38RUN-TIME TYPE IDENTIFICATION..........................................................................................................................................41STREAM IO..................................................................................................................................................................................43TEMPLATES.................................................................................................................................................................................48EXAMPLE OF COOL C++ CLASS................................................................................................................................................49HIGH PERFORMANCE C++.......................................................................................................................................................53MIXING C, C++, AND ASSEMBLY...........................................................................................................................................54C++ NAME MANGLING...............................................................................................................................................................54CALLING C FROM C++................................................................................................................................................................54CALLING C++ FROM C................................................................................................................................................................55CALLING ASSEMBLY FROM C++...............................................................................................................................................55CALLING C++ FROM ASSEMBLY...............................................................................................................................................55INLINE ASSEMBLY WITH C++..................................................................................................................................................553C++


View Full Document

UCSD CSE 125 - Game Development in C++

Download Game Development in C++
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Game Development in C++ and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Game Development in C++ 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?