Jump to content
  • Advertisement
Sign in to follow this  
AquaMacker

Whate is Static VB ?

This topic is 2551 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[font="Verdana"]Hi[/font]

[font="Verdana"]What Is Static VB ?[/font]

[font="Verdana"]
static IDirect3DVertexBuffer9* pVertexBuffer; <- Right ?
pDevice->CreateVertexBuffer( MaxVertexIndex
, D3DUSAGE_WRITEONLY
, NULL
, D3DPOOL_DEFAULT
, &pVertexBuffer
, NULL );
[/font]
[font="Verdana"][/font]
[font="Verdana"][color="#000000"]Plz Answer CODE, not Concepts.[/font]
[font="Verdana"][color="#000000"]I know concepts already.[/font]
[font="Verdana"][color="#000000"]^^a[/font]

Share this post


Link to post
Share on other sites
Advertisement
This is C++ Code...

Static VB and Dynamic VB to talk to...

In Code, Static VB uses "static IDirect3DVertexBuffer9 * pVertexBuffer;" Is this it?

Is That All ?

Share this post


Link to post
Share on other sites
[font="Verdana"][color="#000000"]I know concepts already.[/font]


.....no you don't.... ;)

Let me put it this way. If you knew the concepts already you wouldn't be asking this question, and you wouldn't be asking if declaring a variable as static will give you a static VB. You don't know the concepts, and I get the sense that you just want someone to give you a block of code you can copy and paste. If you are just given that you will be using code that you don't understand.

Share this post


Link to post
Share on other sites
This has nothing to do with the c++ keyword "static"
it is the second parameter in the function

Share this post


Link to post
Share on other sites

[quote name='AquaMacker' timestamp='1307018727' post='4818628'][font="Verdana"][color="#000000"] know concepts already.[/font]


.....no you don't.... ;)

Let me put it this way. If you knew the concepts already you wouldn't be asking this question, and you wouldn't be asking if declaring a variable as static will give you a static VB. You don't know the concepts, and if you are just given code you will be using code that you don't understand.
[/quote]

Hey guy...

I know concept...

but I can't express That very well..IN ENGLISH...??

I know when talk to CODE.

Would you answer me "[color="#000088"]static [color="#660066"]IDirect3DVertexBuffer9[color="#666600"]* pVertexBuffer[color="#666600"];" [color="#666600"]<- [color="#660066"]Right [color="#666600"]?
Please...don't leave ^^a

Share this post


Link to post
Share on other sites

This has nothing to do with the c++ keyword "static"
it is the second parameter in the function


[font="Tahoma"]Sorry.

[/font]"static" is C++ keyword..

Search Please....

Share this post


Link to post
Share on other sites
The static keyword is a C++ keyword which makes the VARIABLE static. It has absolutely nothing to do with the VB contents.

In DirectX terms, a static VB is a VB which has contents that does not change (is static). A static vertex buffer is a vertex buffer created without the D3DUSAGE_DYNAMIC flag.

Share this post


Link to post
Share on other sites

The static keyword is a C++ keyword which makes the VARIABLE static. It has absolutely nothing to do with the VB contents.

In DirectX terms, a static VB is a VB which has contents that does not change (is static). A static vertex buffer is a vertex buffer created without the D3DUSAGE_DYNAMIC flag.


thanks you so much ^^a

Share this post


Link to post
Share on other sites

This has nothing to do with the c++ keyword "static"
it is the second parameter in the function


thanks you so much ^^a

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!