Didn't work. Let's try again.
This commit is contained in:
@@ -88,6 +88,10 @@ struct SpriteJob : RenderJob
|
||||
unsigned int ShaderID;
|
||||
unsigned int TextureID;
|
||||
|
||||
//Niklas is trying to get Frames to work.
|
||||
GLuint Texture;
|
||||
//Niklas is trying to get Frames to work./end
|
||||
|
||||
glm::mat4 ModelMatrix;
|
||||
GLuint DiffuseTexture;
|
||||
GLuint NormalTexture;
|
||||
@@ -167,6 +171,23 @@ struct RenderQueueCollection
|
||||
}
|
||||
};
|
||||
|
||||
struct RenderQueuePair
|
||||
|
||||
{
|
||||
RenderQueue Deferred;
|
||||
RenderQueue Forward;
|
||||
|
||||
void Clear() {
|
||||
Deferred.Clear();
|
||||
Forward.Clear();
|
||||
}
|
||||
|
||||
void Sort() {
|
||||
Deferred.Sort();
|
||||
Forward.Sort();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // RenderQueue_h__
|
||||
Reference in New Issue
Block a user