Re: VertexBuffer
From: Jarred Nicholls (jarred.nicholls_at_umbc.edu)
Date: 10/17/04
- Previous message: Just Me: "Re: How to change "Full Screen" to "Windowed" if some key is pressed."
- In reply to: Johan Blomgren: "Re: VertexBuffer"
- Next in thread: Johan Blomgren: "Re: VertexBuffer"
- Reply: Johan Blomgren: "Re: VertexBuffer"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 17 Oct 2004 14:10:05 -0400
You're welcome.
"Johan Blomgren" <j.blomgren(nospam)@spray.se> wrote in message
news:B01C3742-B212-4CE3-BF80-876557317E6C@microsoft.com...
> thanks,
> it worked !
>
> "Jarred Nicholls" wrote:
>
>> try replacing 'byte' with 'sbyte' ?
>>
>> -Jarred
>>
>> "Johan Blomgren" <j.blomgren(nospam)@spray.se> wrote in message
>> news:7936517A-701F-49F4-A5A2-87C7F0A30481@microsoft.com...
>> > Hi,
>> > Does anyone know why i can't create my vertexbuffer like this?:
>> >
>> > _sizeInBytes is 32bytes ( CustomVertex.PositionNormalTextured )
>> > _numVertices is 4
>> > _format is correct and the same as CustomVertex.PositionNormalTextured
>> >
>> > this._buffer = new Microsoft.DirectX.Direct3D.VertexBuffer( typeof(
>> > byte ),
>> > this._sizeInBytes * this._numVertices,
>> > Device,
>> > Usage.WriteOnly,
>> > this._format,
>> > Pool.Default );
>> >
>> > It only works when i create it like this:
>> >
>> > this._buffer = new Microsoft.DirectX.Direct3D.VertexBuffer( typeof(
>> > CustomVertex.PositionNormalTextured ),
>> > this._numVertices,
>> > Device,
>> > Usage.WriteOnly,
>> > this._format,
>> > Pool.Default );
>> >
>> > Have i missed something? Any help would be appreciated
>> > Cheers
>> >
>> >
>>
>>
>>
- Previous message: Just Me: "Re: How to change "Full Screen" to "Windowed" if some key is pressed."
- In reply to: Johan Blomgren: "Re: VertexBuffer"
- Next in thread: Johan Blomgren: "Re: VertexBuffer"
- Reply: Johan Blomgren: "Re: VertexBuffer"
- Messages sorted by: [ date ] [ thread ]