OpenSiv3D  v0.6.5
C++20 framework for creative coding
Graphics3D.hpp File Reference
#include "Common.hpp"
#include "Optional.hpp"
#include "BlendState.hpp"
#include "RasterizerState.hpp"
#include "DepthStencilState.hpp"
#include "SamplerState.hpp"
#include "ShaderStage.hpp"
#include "VertexShader.hpp"
#include "PixelShader.hpp"
#include "ConstantBuffer.hpp"
#include "RenderTexture.hpp"
#include "Mat4x4.hpp"
#include "detail/Graphics3D.ipp"

Namespaces

 s3d
 
 s3d::Graphics3D
 

Functions

BlendState s3d::Graphics3D::GetBlendState ()
 現在適用されているブレンドステートを返します。 More...
 
RasterizerState s3d::Graphics3D::GetRasterizerState ()
 現在適用されているラスタライザーステートを返します。 More...
 
DepthStencilState s3d::Graphics3D::GetDepthStencilState ()
 現在適用されているデプス・ステンシルステートを返します。 More...
 
SamplerState s3d::Graphics3D::GetSamplerState (ShaderStage shaderStage=ShaderStage::Pixel, uint32 slot=0)
 現在適用されているサンプラーステートを返します。 More...
 
void s3d::Graphics3D::SetScissorRect (const Rect &rect)
 シザー矩形を設定します。 More...
 
Rect s3d::Graphics3D::GetScissorRect ()
 現在設定されているシザー矩形を返します。 More...
 
Optional< Rect > s3d::Graphics3D::GetViewport ()
 現在適用されているビューポートを返します。 More...
 
Optional< VertexShader > s3d::Graphics3D::GetCustomVertexShader ()
 現在適用されている頂点シェーダを返します。 More...
 
Optional< PixelShader > s3d::Graphics3D::GetCustomPixelShader ()
 現在適用されているピクセルシェーダを返します。 More...
 
void s3d::Graphics3D::SetCameraTransform (const Mat4x4 &matrix, const Float3 &eyePosition)
 
void s3d::Graphics3D::SetCameraTransform (const BasicCamera3D &camera3D)
 
const Mat4x4 & s3d::Graphics3D::GetCameraTransform ()
 
Float3 s3d::Graphics3D::GetEyePosition ()
 
const Mat4x4 & s3d::Graphics3D::GetLocalTransform ()
 
Optional< RenderTexture > s3d::Graphics3D::GetRenderTarget ()
 現在のレンダーターゲットになっているレンダーテクスチャを返します。 More...
 
Size s3d::Graphics3D::GetRenderTargetSize ()
 現在のレンダーターゲットのサイズ(ピクセル)を返します More...
 
void s3d::Graphics3D::SetVSTexture (uint32 slot, const Optional< Texture > &texture)
 2D 描画の頂点シェーダのテクスチャスロットにテクスチャをアタッチします。 More...
 
void s3d::Graphics3D::SetPSTexture (uint32 slot, const Optional< Texture > &texture)
 2D 描画のピクセルシェーダのテクスチャスロットにテクスチャをアタッチします。 More...
 
void s3d::Graphics3D::SetGlobalAmbientColor (const ColorF &color)
 グローバル環境光の色を設定します。 More...
 
ColorF s3d::Graphics3D::GetGlobalAmbientColor ()
 
void s3d::Graphics3D::SetSunDirection (const Vec3 &direction)
 メイン平行光源への方向を設定します。 More...
 
Vec3 s3d::Graphics3D::GetSunDirection ()
 
void s3d::Graphics3D::SetSunColor (const ColorF &color)
 メイン平行光源の色を設定します。 More...
 
ColorF s3d::Graphics3D::GetSunColor ()
 
void s3d::Graphics3D::Flush ()
 現在までの 3D 描画を実行します。 More...
 
template<class Type >
void s3d::Graphics3D::SetVSConstantBuffer (uint32 slot, const ConstantBuffer< Type > &buffer)
 頂点シェーダの定数バッファを設定します。 More...
 
template<class Type >
void s3d::Graphics3D::SetPSConstantBuffer (uint32 slot, const ConstantBuffer< Type > &buffer)
 ピクセルシェーダの定数バッファを設定します。 More...
 
template<class Type >
void s3d::Graphics3D::SetConstantBuffer (ShaderStage stage, uint32 slot, const ConstantBuffer< Type > &buffer)
 定数バッファを設定します。 More...
 

Variables

constexpr ColorF s3d::Graphics3D::DefaultGlobalAmbientColor { 0.5 }
 
constexpr ColorF s3d::Graphics3D::DefaultSunColor { 1.0 }
 
constexpr Vec3 s3d::Graphics3D::DefaultSunDirection { 0.4082482904638631, 0.4082482904638631, -0.8164965809277261 }