Quote:
Originally Posted by MrSm!th
Wat?
|
Imagine you have 2 arrays, a dynamic and a static one, both arrays of integer.
[Only registered and activated users can see links. Click Here To Register...]
first line: integer(&Some
StaticArray) = 0x00423EDC
second line: integer(&Some
DynamicArray) = 0x00423EEC
third line: integer(&SomeDynamicArray
[0]) = 0x0063C2A8
now imagine you want to copy those data to your GPU memory via memcpy. what does memcopy? you pass 2 pointers, your source and your destination and the length. copying the static array with a pointer to the array is fine because the data are all located there. copying the dynamic array by passing a pointer to it, you will only copy the pointer to the first element and then some zero's if you're lucky, or get an AV else.
thats the difference.
Quote:
|
I dont think you understand. Its getting vb and ib from a drawindexedprimitive call.
|
you dont want my help, do ya? the code you posted looks fine as far as one can tell, unless your variables are set up wrong, which I cant tell because I dont see how you fill your buffers. drawindexedprimitve does not fill a buffer, it takes a pointer to a dxstruct which gets passed to the gpu. if you hooked it and grabbed that buffer, it looks like you only grabbed the pointer so you gotta read what that pointer points to.