Skip to content

Resource

bluecri edited this page Sep 29, 2018 · 5 revisions

Model & Texture

  • If same model, texture is used, do not create more model or texture. Return already created resource.

  • Model & texture is distinguished by file name.


Model

  • From *.obj file or vertices in code

  • Use EBO(element buffer object) or not

  • If EBO is used, drawcall function is changed


Texture

  • Use *.DDS, *.BMP texture loader in reference


Batching

  • Sort object with texture(1st) & model(2nd)

  • Make texture and model change drawcall as few as possible.