/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OHOS_RENDER_3D_TEXTURE_INFO_H
#define OHOS_RENDER_3D_TEXTURE_INFO_H

#include <cstdint>
#include <data_type/constants.h>

namespace OHOS::Rosen {
class RSUIContext;
}
namespace OHOS::Render3D {
struct TextureInfo {
    uint32_t width_ = 0U;
    uint32_t height_ = 0U;
    uint32_t textureId_ = 0U;
    void* nativeWindow_ = nullptr;
    float widthScale_ = 1.0f;
    float heightScale_ = 1.0f;
    float customRatio_ = 0.1f;
    bool recreateWindow_ = true;
};

struct WindowChangeInfo {
    float offsetX = 0.0;
    float offsetY = 0.0;
    float width = 0.0;
    float height = 0.0;
    float scale = 1.0;
    float widthScale = 1.0;
    float heightScale = 1.0;
    bool recreateWindow = true;
    SurfaceType surfaceType = SurfaceType::SURFACE_TEXTURE;
    uint32_t transformType = 0; // TransformHint
    uint32_t backgroundColor = 0x00000000; // transparent color, argb
    uint64_t producerSurfaceId = 0x0;
    std::shared_ptr<Rosen::RSUIContext> rsUIContext = nullptr;
    void* customNativeWin = nullptr;
};
} // namespace OHOS::Render3D
#endif // OHOS_RENDER_3D_TEXTURE_INFO_H