docs: update README.md and fix components module docs
- Update README.md project structure docs/api section - Add missing audio/, components/, scene/ directories - Reorder alphabetically - Update Components test count from 2+ to 3 - Expand documentation section with module listings - Remove incomplete audio-source and audio-listener component docs from components.md (referenced 30+ and 16+ non-existent method docs)
This commit is contained in:
29
docs/api/resources/texture/constructor.md
Normal file
29
docs/api/resources/texture/constructor.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Texture::Texture
|
||||
|
||||
```cpp
|
||||
Texture()
|
||||
```
|
||||
|
||||
默认构造函数。创建一个无效的 Texture 对象,需要调用 `Create` 方法进行初始化。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Texture tex;
|
||||
// tex 此时无效,需要调用 Create 方法
|
||||
bool ok = tex.Create(1024, 1024, 1, 1,
|
||||
TextureType::Texture2D,
|
||||
TextureFormat::RGBA8_UNORM,
|
||||
nullptr, 0);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Texture 总览](texture.md) - 返回类总览
|
||||
- [Create](create.md) - 创建纹理方法
|
||||
Reference in New Issue
Block a user