-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuggeroVisintin/issue20 #21
Conversation
add rendering system implementation + ShapeComponent draw logic
const size = this.transform.size; | ||
|
||
renderer.pushRenderCommand(new DrawPrimitiveCommand( | ||
PrimitiveType.Rectangle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass this.shapeType instead
const shapeComponent = new ShapeComponent(); | ||
const renderer = new Renderer(new CanvasDevice()); | ||
|
||
it('Should push the right draw command to the renderer', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more test cases with different positions and sizes
|
||
it.todo('Should render objects based on their depthIndex in reverse order (0 rendered last)') | ||
|
||
it.todo('Should render object based on their transparency (transparent last)') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add another test case like it('Should render transparency objects as last but ordered by depth index)
Uses RenderSystem to render ShapeComponents