Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


AgPF6

Member Since 08 Mar 2013
Offline Last Active Aug 17 2014 08:01 PM

Posts I've Made

In Topic: pointer value

16 August 2014 - 08:49 AM

You are creating a pointer to an object of size float, but you are never creating memory to store the actual float. When you dereference the pointer you are accessing memory that is not available to you. Becareful also that the memory you create stays within scope for the entire duration that the function you are calling requires it or you will get an access violation.

These are difficult to track down.

In Topic: Pi decimals as a random number generator

13 August 2014 - 08:46 PM

Hello rAm_y,

It also depends on the accuracy of your simulation. If you just need a number to get an index into something, for example some bonus item, then speed is more important. Look into XorShift.

In Topic: How low a level do you understand between 'SW' and HW?

14 July 2014 - 02:20 PM

One of things that you have to remember is that your concept of "mouse" is really just an area in video memory being written to in a certain way which would produce a recognizable image as "cursor". this is accomplished by operations at the cpu level that produce a value that the video output understands to be a certain "color". The reason why I use quotations is because these concepts dont exist to the computer, but are manufactured so that you as the user can intetact with the system to produce meaningful results. Assembly is just a human readable form of binary data, and what a higher end compiler does is translate its easier to read langauge into binary instructions for the cpu to assign memeory locations a value that can later be used to do something.

In Topic: Probably a stupid question...

26 May 2013 - 09:47 PM

I would imagine that each point.z is a function of the radius. As the distance from the mouse cursor increases, height decreases.

In Topic: Pointer to an abstract class

21 May 2013 - 02:03 AM

[code=auto:0]
class a
{
public:
class b
{
public:
virtual void something() = 0;
}
}
[\code]

Not sure why you would want to do this.

PARTNERS