From eb49331e0ef883238dc945514c90b5d56c204c93 Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Mon, 3 Jul 2017 11:30:57 +0300 Subject: [PATCH] notes on the design - will be updated --- notes | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 notes diff --git a/notes b/notes new file mode 100644 index 0000000..953dad2 --- /dev/null +++ b/notes @@ -0,0 +1,42 @@ + +-------------------+ +-------------------+ +---------------------+ + | | | | | | + | | | | | | +---------------------+ we need a second renderer for the + | scene | | object | | static renderer ++ | | objects (1 renderer per scene => + | | | | | || | renderer of | we can load/update the shader + | | | | | +----------+ the objects' +----------+ once for all the objects - we + +--------+----------+ +--------+----------+ +-----------+---------+ | scene | might have hundreds) + | | | | | + + | | +---------------------+ + +it stores all the resources | | it will need +responsible for loading, cleanup | | GL/VK backends +storage | +-------------------------------------------------+ all the draw functions! + | | for +it creates the objects using + + + unctions +the assimp nodes info contains: the static renderer stores all | +(assigns mesh, material and +--+ * ptr to mesh (geometry) the information about the world | + testures to objects) | * ptr to material (contains ptr to texture) +--+ and the static scenes | + | ----------- | | + | * transformation (Mat4) +-------+------+ (shaders, modelling, viewing, | + +--------+-----+ | | camera transformations) | + | | | Texture | | + | Mesh | | | + | + | | ++-----------+-+ | | + +-+----------+-+ | | | | + | | +---------+-+ +---+--------+ | | + +------+-----+ +--+---------+ | | | | | | + | | | | | TextureGL | | TextureVK | +---------+---------+ + | MeshGL | | MeshVK | | | | | | + | | | | +-----------+ +------------+ | + +------------+ +------------+ | + | + | + +------------+------------+ + | | + | shader/shader prog | + | | + +--+-----------------+----+ + | | + +---------------+----+ +----+------------+ + | ShaderProgramGL | | ShaderProgramVK | + +--------------------+ +-----------------+ + -- 1.7.10.4