The struct tag has no usage guidance.
0
votes
1answer
41 views
a shader type class in c
Is it possible to setup something sort of like a class in C++ but in c in the simplest terms? I want to avoid using c++ but I would like to create a simple struct that has glsl shader program.
for ...
0
votes
1answer
54 views
Geometry Struct and glDrawElements
currently I re-write my codes and change them to make they are better.
I have vertex struct like this:
struct SVertex
{
float X, Y, Z;
};
struct STexCoord
{
float U, V;
};
And I re-wrote ...
0
votes
2answers
121 views
Voxel Engine in XNA - Block as Class Renders, Block as Struct Doesn't
Edit: I almost forgot to mention - when I place NEW blocks they render, but nothing triggers the originals to render (I have a button assigned to recalculate/redraw for every block surrounding (and ...
1
vote
0answers
482 views
Why do the order of struct members between vertex and pixel shader must be reversed?
This has been driving me crazy for the last two days but it is finally working, however I really don't see why the order of struct members should be reversed.
Why do members of PS_INPUT must be ...
3
votes
2answers
335 views
How to fill/initialize D3D11_SAMPLER_DESC properly?
If I want to set explicitly every parameter of the structure I just do so and that's it. But what if I want to set only some of them and leave the rest with default values? I've seen in some tutorial ...