How danila-schelkov/sc-editor works
Main Components
a. User Interface Layer:
• Main EditorWindow as the top-level container
• Panels (TexturesPanel, TimelinePanel, DisplayObjectListPanel)
• MenuBar structure with its various menus (File, Edit, View, Options, Help)
b. Renderer System:
• OpenGL rendering pipeline components (VAO, VBO, EBO)
• Texture management system
• Camera and Stage components
• Shader system
c. Core Editor Components:
• Resource management system
• SWF processing components
d. Export System:
• Video export capabilities (FFmpeg, Humble)
• Image export functionality
Relationships and Data Flow
[User Interface Layer]
• ↕
[Event Handling System]
• ↕
[Core Editor Components] ←→ [Renderer System]
• ↕
[Resource Management]
• ↕
[Export System]
Specific Implementation Details
a. UI Component Hierarchy:
EditorWindow
• EditorMenuBar
• TexturesPanel
• TimelinePanel
• DisplayObjectListPanel
• EditorCanvas
• StatusBar
b. Renderer Pipeline:
Stage → Camera → Shader → VAO/VBO/EBO → Framebuffer
c. Object Hierarchy:
DisplayObject
• MovieClip
• Sprite
• TextField
Important Architectural Patterns to Highlight
• Observer Pattern: Used in event listeners (ViewportMouseListener, CameraMouseListener)
• Factory Pattern: DisplayObjectFactory for creating display objects
• Command Pattern: For menu actions and editing operations