You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
PoolVector is gone, replaced by Vector
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
This commit is contained in:
committed by
Juan Linietsky
parent
fb8c93c10b
commit
3205a92ad8
@@ -98,10 +98,10 @@ void OpenSimplexNoise::set_lacunarity(float p_lacunarity) {
|
||||
|
||||
Ref<Image> OpenSimplexNoise::get_image(int p_width, int p_height) {
|
||||
|
||||
PoolVector<uint8_t> data;
|
||||
Vector<uint8_t> data;
|
||||
data.resize(p_width * p_height * 4);
|
||||
|
||||
PoolVector<uint8_t>::Write wd8 = data.write();
|
||||
uint8_t *wd8 = data.ptrw();
|
||||
|
||||
for (int i = 0; i < p_height; i++) {
|
||||
for (int j = 0; j < p_width; j++) {
|
||||
@@ -121,10 +121,10 @@ Ref<Image> OpenSimplexNoise::get_image(int p_width, int p_height) {
|
||||
|
||||
Ref<Image> OpenSimplexNoise::get_seamless_image(int p_size) {
|
||||
|
||||
PoolVector<uint8_t> data;
|
||||
Vector<uint8_t> data;
|
||||
data.resize(p_size * p_size * 4);
|
||||
|
||||
PoolVector<uint8_t>::Write wd8 = data.write();
|
||||
uint8_t *wd8 = data.ptrw();
|
||||
|
||||
for (int i = 0; i < p_size; i++) {
|
||||
for (int j = 0; j < p_size; j++) {
|
||||
|
||||
Reference in New Issue
Block a user