![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
Functions | |
BlendState | GetBlendState () |
現在適用されているブレンドステートを返します。 More... | |
RasterizerState | GetRasterizerState () |
現在適用されているラスタライザーステートを返します。 More... | |
DepthStencilState | GetDepthStencilState () |
現在適用されているデプス・ステンシルステートを返します。 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... | |
void | SetCameraTransform (const Mat4x4 &matrix, const Float3 &eyePosition) |
void | SetCameraTransform (const BasicCamera3D &camera3D) |
const Mat4x4 & | GetCameraTransform () |
Float3 | GetEyePosition () |
const Mat4x4 & | GetLocalTransform () |
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 | SetGlobalAmbientColor (const ColorF &color) |
グローバル環境光の色を設定します。 More... | |
ColorF | GetGlobalAmbientColor () |
void | SetSunDirection (const Vec3 &direction) |
メイン平行光源への方向を設定します。 More... | |
Vec3 | GetSunDirection () |
void | SetSunColor (const ColorF &color) |
メイン平行光源の色を設定します。 More... | |
ColorF | GetSunColor () |
void | Flush () |
現在までの 3D 描画を実行します。 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... | |
Variables | |
constexpr ColorF | DefaultGlobalAmbientColor { 0.5 } |
constexpr ColorF | DefaultSunColor { 1.0 } |
constexpr Vec3 | DefaultSunDirection { 0.4082482904638631, 0.4082482904638631, -0.8164965809277261 } |
void s3d::Graphics3D::Flush | ( | ) |
現在までの 3D 描画を実行します。
MSRenderTexture
のリゾルブ前に必要です。 BlendState s3d::Graphics3D::GetBlendState | ( | ) |
現在適用されているブレンドステートを返します。
const Mat4x4& s3d::Graphics3D::GetCameraTransform | ( | ) |
Optional<PixelShader> s3d::Graphics3D::GetCustomPixelShader | ( | ) |
現在適用されているピクセルシェーダを返します。
Optional<VertexShader> s3d::Graphics3D::GetCustomVertexShader | ( | ) |
現在適用されている頂点シェーダを返します。
DepthStencilState s3d::Graphics3D::GetDepthStencilState | ( | ) |
現在適用されているデプス・ステンシルステートを返します。
Float3 s3d::Graphics3D::GetEyePosition | ( | ) |
ColorF s3d::Graphics3D::GetGlobalAmbientColor | ( | ) |
const Mat4x4& s3d::Graphics3D::GetLocalTransform | ( | ) |
RasterizerState s3d::Graphics3D::GetRasterizerState | ( | ) |
現在適用されているラスタライザーステートを返します。
Optional<RenderTexture> s3d::Graphics3D::GetRenderTarget | ( | ) |
現在のレンダーターゲットになっているレンダーテクスチャを返します。
Size s3d::Graphics3D::GetRenderTargetSize | ( | ) |
現在のレンダーターゲットのサイズ(ピクセル)を返します
SamplerState s3d::Graphics3D::GetSamplerState | ( | ShaderStage | shaderStage = ShaderStage::Pixel , |
uint32 | slot = 0 |
||
) |
現在適用されているサンプラーステートを返します。
shaderStage | シェーダステージ |
slot | テクスチャスロット |
Rect s3d::Graphics3D::GetScissorRect | ( | ) |
現在設定されているシザー矩形を返します。
ColorF s3d::Graphics3D::GetSunColor | ( | ) |
Vec3 s3d::Graphics3D::GetSunDirection | ( | ) |
現在適用されているビューポートを返します。
void s3d::Graphics3D::SetCameraTransform | ( | const BasicCamera3D & | camera3D | ) |
|
inline |
定数バッファを設定します。
Type | 定数バッファの構造体 |
stage | シェーダステージ |
slot | スロット |
buffer | 定数バッファ |
void s3d::Graphics3D::SetGlobalAmbientColor | ( | const ColorF & | color | ) |
グローバル環境光の色を設定します。
color | グローバル環境光の色 |
|
inline |
ピクセルシェーダの定数バッファを設定します。
Type | 定数バッファの構造体 |
slot | スロット |
buffer | 定数バッファ |
2D 描画のピクセルシェーダのテクスチャスロットにテクスチャをアタッチします。
slot | スロット。最大 (SamplerState::MaxSamplerCount - 1) |
texture | アタッチするテクスチャ。none の場合テクスチャのアタッチを解除します。 |
void s3d::Graphics3D::SetScissorRect | ( | const Rect & | rect | ) |
シザー矩形を設定します。
rect | シザー矩形 |
void s3d::Graphics3D::SetSunColor | ( | const ColorF & | color | ) |
メイン平行光源の色を設定します。
color | メイン平行光源の色 |
void s3d::Graphics3D::SetSunDirection | ( | const Vec3 & | direction | ) |
メイン平行光源への方向を設定します。
direction | メイン平行光源への方向 |
|
inline |
頂点シェーダの定数バッファを設定します。
Type | 定数バッファの構造体 |
slot | スロット |
buffer | 定数バッファ |
2D 描画の頂点シェーダのテクスチャスロットにテクスチャをアタッチします。
slot | スロット。最大 (SamplerState::MaxSamplerCount - 1) |
texture | アタッチするテクスチャ。none の場合テクスチャのアタッチを解除します。 |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |