Visual Studio 2008 – Direct2D Samples from Win7 SDK

  direct2d posted by (C)takao21203 Today I downloaded the Win7 SDK. Actually it is possible to use Visual Studio 2008 on a 1GB Intel Atom netbook. Visual Studio Express 2013 is very slow! But Visual Studio 2008 is useable. The Win7 SDK includes a lot of sample source codes. For instance Direct2D. When I tried to compile it this night, … Continue reading

game prototype (3)

One line of code will add a copy of a building to the treelist on the right side, including all child nodes! I somehow derived the idea not to write code for this functionality, but establish correlations using the Visual Studio Designer. It worked! In the end, buildings will be shown on the map, using the data from the treelist. … Continue reading

game prototype (2)

program elements: -map (display, load/save) -map navigation -buildings definition treelist -map buildings treelist -map editor/creator -game rules engine -timer interrupt system/events processing For the prototype, simple 2D objects will be displayed on the map. Later, code becomes added for 3D display! After some consideration, it seems to be desireable to display the opponents city on the map. So the game … Continue reading

Visual VC++ Strings, and embedded C strings

Today I have tried the map Template Class for the first time. This functionality is part of the STL/CLR. It is still possible to use old style syntax, however this is now considered as “unsafe”. C language was designed on mainframe computers with small memories! Today’s computer memories are different by dimensions, GBytes, not KBytes. As well the operating system … Continue reading

the DX pipeline

This is how DirectX works. Geometry data is used for realtime rendering! The graphics card has own CPU. < IndexedFaceSet solid=”true” coordIndex=”0 1 2 3 -1 4 7 6 5 -1 0 4 5 1 -1 1 5 6 2 -1 2 6 7 3 -1 4 0 3 7 -1 “>< Coordinate DEF=”coords_ME_Cube”point=”1.000000 1.000000 -1.000000 1.000000 -1.000000 -1.000000 -1.000000 … Continue reading