![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
Functions | |
| Float4 | GetColorMul () |
| 現在適用されている乗算カラーを返します。 More... | |
| Float4 | GetColorAdd () |
| 現在適用されている加算カラーを返します。 More... | |
| BlendState | GetBlendState () |
| 現在適用されているブレンドステートを返します。 More... | |
| RasterizerState | GetRasterizerState () |
| 現在適用されているラスタライザーステートを返します。 More... | |
| SamplerState | GetSamplerState (ShaderStage shaderStage=ShaderStage::Pixel, uint32 slot=0) |
| 現在適用されているサンプラーステートを返します。 More... | |
| void | SetScissorRect (const Rect &rect) |
| シザー矩形を設定します。 More... | |
| Rect | GetScissorRect () |
| 現在設定されているシザー矩形を返します。 More... | |
| Optional< Rect > | GetViewport () |
| 現在適用されているビューポートを返します。 More... | |
| Optional< VertexShader > | GetCustomVertexShader () |
| 現在適用されている頂点シェーダを返します。 More... | |
| Optional< PixelShader > | GetCustomPixelShader () |
| 現在適用されているピクセルシェーダを返します。 More... | |
| const Mat3x2 & | GetLocalTransform () |
| 現在適用されているローカル座標変換を返します。 More... | |
| const Mat3x2 & | GetCameraTransform () |
| 現在適用されている 2D カメラ座標変換を返します。 More... | |
| float | GetMaxScaling () noexcept |
| 現在適用されている座標変換による縦横の拡大縮小倍率のうち大きいほうを返します。 More... | |
| Optional< RenderTexture > | GetRenderTarget () |
| 現在のレンダーターゲットになっているレンダーテクスチャを返します。 More... | |
| Size | GetRenderTargetSize () |
| 現在のレンダーターゲットのサイズ(ピクセル)を返します More... | |
| void | SetVSTexture (uint32 slot, const Optional< Texture > &texture) |
| 2D 描画の頂点シェーダのテクスチャスロットにテクスチャをアタッチします。 More... | |
| void | SetPSTexture (uint32 slot, const Optional< Texture > &texture) |
| 2D 描画のピクセルシェーダのテクスチャスロットにテクスチャをアタッチします。 More... | |
| void | Flush () |
| 現在までの 2D 描画を実行します。 More... | |
| void | DrawTriangles (uint32 count) |
| 頂点情報を設定せずに 2D 三角形を描画します。 More... | |
| void | SetSDFParameters (const TextStyle &textStyle) |
| SDF 描画用のパラメータを設定します。 More... | |
| void | SetMSDFParameters (const TextStyle &textStyle) |
| MSDF 描画用のパラメータを設定します。 More... | |
| template<class Type > | |
| void | SetVSConstantBuffer (uint32 slot, const ConstantBuffer< Type > &buffer) |
| 頂点シェーダの定数バッファを設定します。 More... | |
| template<class Type > | |
| void | SetPSConstantBuffer (uint32 slot, const ConstantBuffer< Type > &buffer) |
| ピクセルシェーダの定数バッファを設定します。 More... | |
| template<class Type > | |
| void | SetConstantBuffer (ShaderStage stage, uint32 slot, const ConstantBuffer< Type > &buffer) |
| 定数バッファを設定します。 More... | |
| void s3d::Graphics2D::DrawTriangles | ( | uint32 | count | ) |
頂点情報を設定せずに 2D 三角形を描画します。
| count | 描画する三角形の個数 |
| void s3d::Graphics2D::Flush | ( | ) |
現在までの 2D 描画を実行します。
MSRenderTexture のリゾルブ前に必要です。 | BlendState s3d::Graphics2D::GetBlendState | ( | ) |
現在適用されているブレンドステートを返します。
| const Mat3x2& s3d::Graphics2D::GetCameraTransform | ( | ) |
現在適用されている 2D カメラ座標変換を返します。
| Float4 s3d::Graphics2D::GetColorAdd | ( | ) |
現在適用されている加算カラーを返します。
| Float4 s3d::Graphics2D::GetColorMul | ( | ) |
現在適用されている乗算カラーを返します。
| Optional<PixelShader> s3d::Graphics2D::GetCustomPixelShader | ( | ) |
現在適用されているピクセルシェーダを返します。
| Optional<VertexShader> s3d::Graphics2D::GetCustomVertexShader | ( | ) |
現在適用されている頂点シェーダを返します。
| const Mat3x2& s3d::Graphics2D::GetLocalTransform | ( | ) |
現在適用されているローカル座標変換を返します。
|
noexcept |
現在適用されている座標変換による縦横の拡大縮小倍率のうち大きいほうを返します。
| RasterizerState s3d::Graphics2D::GetRasterizerState | ( | ) |
現在適用されているラスタライザーステートを返します。
| Optional<RenderTexture> s3d::Graphics2D::GetRenderTarget | ( | ) |
現在のレンダーターゲットになっているレンダーテクスチャを返します。
| Size s3d::Graphics2D::GetRenderTargetSize | ( | ) |
現在のレンダーターゲットのサイズ(ピクセル)を返します
| SamplerState s3d::Graphics2D::GetSamplerState | ( | ShaderStage | shaderStage = ShaderStage::Pixel, |
| uint32 | slot = 0 |
||
| ) |
現在適用されているサンプラーステートを返します。
| shaderStage | シェーダステージ |
| slot | テクスチャスロット |
| Rect s3d::Graphics2D::GetScissorRect | ( | ) |
現在設定されているシザー矩形を返します。
現在適用されているビューポートを返します。
|
inline |
定数バッファを設定します。
| Type | 定数バッファの構造体 |
| stage | シェーダステージ |
| slot | スロット |
| buffer | 定数バッファ |
| void s3d::Graphics2D::SetMSDFParameters | ( | const TextStyle & | textStyle | ) |
MSDF 描画用のパラメータを設定します。
| textStyle | テキストスタイル |
|
inline |
ピクセルシェーダの定数バッファを設定します。
| Type | 定数バッファの構造体 |
| slot | スロット |
| buffer | 定数バッファ |
2D 描画のピクセルシェーダのテクスチャスロットにテクスチャをアタッチします。
| slot | スロット。最大 (SamplerState::MaxSamplerCount - 1) |
| texture | アタッチするテクスチャ。none の場合テクスチャのアタッチを解除します。 |
| void s3d::Graphics2D::SetScissorRect | ( | const Rect & | rect | ) |
シザー矩形を設定します。
| rect | シザー矩形 |
| void s3d::Graphics2D::SetSDFParameters | ( | const TextStyle & | textStyle | ) |
SDF 描画用のパラメータを設定します。
| textStyle | テキストスタイル |
|
inline |
頂点シェーダの定数バッファを設定します。
| Type | 定数バッファの構造体 |
| slot | スロット |
| buffer | 定数バッファ |
2D 描画の頂点シェーダのテクスチャスロットにテクスチャをアタッチします。
| slot | スロット。最大 (SamplerState::MaxSamplerCount - 1) |
| texture | アタッチするテクスチャ。none の場合テクスチャのアタッチを解除します。 |