|
|
|
|
|  |
Leave This User a Message
sup dude. long time no see. hope classes and whatnot are going well  . in other news, zuild public beta in just over 1 month... wooo! anyways, ill ttylz - Duck
Yarrrr Matey. Hope your arm is better today =D
ah. well if unsigned int* pBuffer is a pointer to a graphics buffer, and unsigned int pitch is the width, you can access a 32-bit color pixel at location (i,j) using
pBuffer[ i + j*pitch ]
cool. ill find a good sample and send it your way in a few days.
and yea pointers are great in C++... especially the ability to use array[ ] notation on a pointer for easy pointer math. Personally i dont use multi-dimensional arrays in C++ and instead use single-dimension array notation and additional pointer math inside the [ ]. works hella nice/elegant, especially for stuff like graphics buffers.
and yea  current plan is to allow posting comments to self... but that may change if there is popular demand for otherwise.
ah. well having no pointers usually implies that memory management is handled automatically, which can save alot of development time and hair-pulling. C# has auto-memory management like java, but you can also add an unsafe{ } block of C# code which lets you use pointers. Personally it's because of that and other features that i would say C# is probably the best language out right now.. it borrows heavily from C++ but also borrows some good ideas from other languages.
And yea .net (and asp.net) is great cause you're programming in a low-level language (not like a javascript or php) and you can mix languages too... you can build a .net library in C++ and use it in C# code. really nicely done. Thus far we've only needed C# but i imagine in the future some of our backend code may be written in a mix of C# and C++.
If you're interested in how C#/.net plays out for web development i can send you a sample page from our codebase...
Should I be able to post a comment to myself?
saw your bio. you should check out some ASP.Net and C# =D. I'm in your camp when you say php is teh suq, but web programming is actually pretty enjoyable with C#. A fair bit of the tools are available for free now @ the ms website... http://msdn.microsoft.com/...How do you like java so far?
|  |  |  |  |
|