News Alert: Experts Exchange Confirmed as Safe in Cloudbleed Leak Read More
Dim x_dim As Single = WorkC(1) * 0.5
Dim y_dim As Single = WorkC(2) * 0.5
Dim z_dim As Single = WorkC(3) * 0.5
Dim vertices() As Single = { _
x_dim, y_dim, z_dim, -x_dim, y_dim, z_dim, -x_dim, y_dim, -z_dim, x_dim, y_dim, -z_dim, _
x_dim, y_dim, z_dim, x_dim, y_dim, -z_dim, x_dim, -y_dim, -z_dim, x_dim, -y_dim, z_dim, _
x_dim, y_dim, z_dim, x_dim, -y_dim, z_dim, -x_dim, -y_dim, z_dim, -x_dim, y_dim, z_dim, _
-x_dim, y_dim, z_dim, -x_dim, -y_dim, z_dim, -x_dim, -y_dim, -z_dim, -x_dim, y_dim, -z_dim, _
-x_dim, -y_dim, -z_dim, x_dim, -y_dim, -z_dim, x_dim, y_dim, -z_dim, -x_dim, y_dim, -z_dim, _
x_dim, -y_dim, -z_dim, -x_dim, -y_dim, -z_dim, -x_dim, -y_dim, z_dim, x_dim, -y_dim, z_dim}
Dim indices() As Byte = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, _
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
Gl.glEnableClientState(Gl.GL_VERTEX_ARRAY)
Gl.glVertexPointer(3, Gl.GL_FLOAT, 0, vertices)
Gl.glDrawElements(Gl.GL_QUADS, 24, Gl.GL_UNSIGNED_BYTE, indices)
Gl.glDisableClientState(Gl.GL_VERTEX_ARRAY)
If you are experiencing a similar issue, please ask a related question
Title | # Comments | Views | Activity |
---|---|---|---|
DataGridView Events ? | 3 | 45 | |
Extracting last characters in a substring | 5 | 28 | |
rebind a grid after user clicks on node in treeview | 1 | 36 | |
Convert datetime to time string | 10 | 21 |
Join the community of 500,000 technology professionals and ask your questions.