Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

1.2 KB
Raw Blame
/* SPDX-FileCopyrightText: 2013 Jorge Jimenez <[email protected]>
 * SPDX-FileCopyrightText: 2013 Jose I. Echevarria <[email protected]>
 * SPDX-FileCopyrightText: 2013 Belen Masia <[email protected]>
 * SPDX-FileCopyrightText: 2013 Fernando Navarro <[email protected]>
 * SPDX-FileCopyrightText: 2013 Diego Gutierrez <[email protected]>
 *
 * SPDX-License-Identifier: MIT */

/** \file
 * \ingroup bli
 */

#pragma once

namespace blender {

#define AREATEX_WIDTH 160
#define AREATEX_HEIGHT 560
#define AREATEX_PITCH (AREATEX_WIDTH * 2)
#define AREATEX_SIZE (AREATEX_HEIGHT * AREATEX_PITCH)

/**
 * Stored in R8G8 format. Load it in the following format:
 *  - DX10: DXGI_FORMAT_R8G8_UNORM
 *  - GPU: gpu::TextureFormat::UNORM_8_8 texture format and GPU_DATA_UBYTE data format.
 */
extern const unsigned char areaTexBytes[];

#define SEARCHTEX_WIDTH 64
#define SEARCHTEX_HEIGHT 16
#define SEARCHTEX_PITCH SEARCHTEX_WIDTH
#define SEARCHTEX_SIZE (SEARCHTEX_HEIGHT * SEARCHTEX_PITCH)

/**
 * Stored in R8 format. Load it in the following format:
 *  - DX10: DXGI_FORMAT_R8_UNORM
 *  - GPU: gpu::TextureFormat::UNORM_8 texture format and GPU_DATA_UBYTE data format.
 */
extern const unsigned char searchTexBytes[];

}  // namespace blender