Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hey,

in Unmanaged C++ when you try to lock the Vertex buffer you need to do something like this (off the top of my head)

 

VB->Lock(0, (void**)&vertices,0)

 

err.. i dont remmeber exactly, but i remember that the (void**)&vertices argument is there somewehre

 

i know the parenthesees specifies like a CType

for example

 

int x;

 

x = (float) 1 / (float) 2

 

*i think* lol

 

but why is void a pointer to a pointer and why would you want vertices to be converted to the void type?,

 

pent

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted
Don't worry too much. That's just how it is in c world. Everything there is by value, you have no reference types. So in this case it's the equivalent of passing an array byref. They have to cast to void since that's the declaration of the function and it's an upward cast and that must be explicit in c.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...