Quantcast
Channel: BlogoSfera » ES
Viewing all articles
Browse latest Browse all 137

any function can instead the GetData in VertexBuffer on platforms with OpenGL ES?

$
0
0

When I run my game with monogame for Android from wp, it works: public void InitBuffers() { meshVertices = new VertexData[meshVertexBuffer.VertexCount]; meshVertexBuffer.GetData<VertexData>(meshVertices); meshIndices = new short[meshIndexBuffer.IndexCount]; meshIndexBuffer.GetData<short>(meshIndices); vertices = new VertexData[meshVertices.Count() * maxAmountOfInstances]; indices = new short[meshIndices.Count() * maxAmountOfInstances]; } But on android , the function GetData gets error : Vertex buffers are write-only on [...]

The post any function can instead the GetData in VertexBuffer on platforms with OpenGL ES? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 137

Trending Articles