Godot Engine 学习笔记 Texture

这篇博客主要介绍了Godot Engine中的Texture类,包括其作为2D和3D纹理的角色、成员函数、成员变量、枚举常量及其用法。文章详细解释了纹理的各个属性,如FLAGS_DEFAULT、FLAG_MIPMAPS等,并提供了如何在场景中使用Texture的示例,如在Sprite、Label和Button等节点中应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Texture

以下为我对于官方文档的翻译以及使用情况,3.0版本的文档
Texture官方文档
继承: Resource < Reference < Object
继承者: CurveTexture, AtlasTexture, ProxyTexture, GradientTexture, ViewportTexture, StreamTexture, ImageTexture, LargeTexture
类型: Core

简要说明

2D和3D纹理

成员函数

返回类型 函数
void draw ( RID canvas_item, Vector2 position, Color modulate=Color( 1, 1, 1, 1 ), bool transpose=false, Texture normal_map=null ) const
void draw_rect ( RID canvas_item, Rect2 rec
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值