31
Jo Engine Wish List / Re: Drawing "billboard" sprites in 3D, sprite pre-scaling
« on: November 02, 2017, 09:41:31 am »
I will update the engine
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I think Johannes specified the temp pointer as char because when you use pointer arithmetic like temp_pointer+2 what you really are saying is temp_pointer+(2*sizeof(char));
If you do pointer arithmetic on a int* like int_ptr+2 what you are really saying is int_ptr+(sizeof(int))
If I remember correctly if you try to do pointer arithmetic on a void* it wont work correctly because void has no size, since it has no size the compiler does not know how much to add.