gfx: fill out seadProjection.h#167
Conversation
|
@aboood40091 Where do you get that information from? |
|
@aboood40091 Any news on this? |
An information source I'd rather not disclose for the time being. Anyway, feel free to not trust me on that because there is another justification which IMO is convincing enough: sead is pretty consistent with its equivalence between cpp files and headers (i.e., cpp file name == header file name), and ALL projection classes are implemented in |
|
Hmm, undisclosed information is hard to verify. I can confirm the second statement though - for example, the @tetraxile Seems like the order is |
For reference, this can also be seen in the MK8 symbol map.
Fair enough, although I did give you an alternative justification, as you also confirmed. |
gfx: add OrthoProjection headergfx: fill out seadProjection.h
MonsterDruide1
left a comment
There was a problem hiding this comment.
Reviewed 1 of 2 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @tetraxile)
include/gfx/seadProjection.h line 135 at r5 (raw file):
void setBoundBox(const BoundBox2f& boundBox); void setByViewport(const Viewport& viewport); void setTBLR(f32 top, f32 left, f32 bottom, f32 right);
Suggestion:
void setTBLR(f32 top, f32 bottom, f32 left, f32 right);include/gfx/seadProjection.h line 162 at r5 (raw file):
void getOffset(Vector2f* offset) const override; f32 getOffsetX() const override; f32 getOffsetY() const override;
Suggestion:
u32 getProjectionType() const override;include/gfx/seadProjection.h line 168 at r5 (raw file):
void setTBLR(f32 top, f32 bottom, f32 left, f32 right) override; void setBoundBox(BoundBox2f& boundBox); void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32);
Suggestion:
void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32) const;include/gfx/seadProjection.h line 169 at r5 (raw file):
void setBoundBox(BoundBox2f& boundBox); void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32); void setFovyAspectOffset(f32 fovy, f32 aspect, const Vector2f& offset);
Suggestion:
void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32);
f32 getOffsetX() const;
f32 getOffsetY() const;
void setFovyAspectOffset(f32 fovy, f32 aspect, const Vector2f& offset);include/gfx/seadProjection.h line 195 at r5 (raw file):
f32 getAspect() const override; void getOffset(Vector2f* offset) const override; void updateAttributesForDirectProjection();
Suggestion:
void getOffset(Vector2f* offset) const override;
u32 getProjectionType() const override;
void updateAttributesForDirectProjection();
tetraxile
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 2 files reviewed, 5 unresolved discussions (waiting on @MonsterDruide1)
include/gfx/seadProjection.h line 135 at r5 (raw file):
void setBoundBox(const BoundBox2f& boundBox); void setByViewport(const Viewport& viewport); void setTBLR(f32 top, f32 left, f32 bottom, f32 right);
done
include/gfx/seadProjection.h line 162 at r5 (raw file):
void getOffset(Vector2f* offset) const override; f32 getOffsetX() const override; f32 getOffsetY() const override;
done
include/gfx/seadProjection.h line 168 at r5 (raw file):
void setTBLR(f32 top, f32 bottom, f32 left, f32 right) override; void setBoundBox(BoundBox2f& boundBox); void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32);
done
include/gfx/seadProjection.h line 169 at r5 (raw file):
void setBoundBox(BoundBox2f& boundBox); void createDividedProjection(FrustumProjection* out, s32, s32, s32, s32); void setFovyAspectOffset(f32 fovy, f32 aspect, const Vector2f& offset);
done
include/gfx/seadProjection.h line 195 at r5 (raw file):
f32 getAspect() const override; void getOffset(Vector2f* offset) const override; void updateAttributesForDirectProjection();
done
MonsterDruide1
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r6, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @tetraxile)
This change is