GaitGeneration by Graph Search
全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 マクロ定義 ページ Concepts
名前空間 | 関数
dxlib_util.h ファイル
#include <array>
#include <Dxlib.h>
#include "math_rotation_matrix.h"
#include "math_vector3.h"

[ソースコード]

名前空間

namespace  designlab::dxlib_util
 Dxlibの3D表示を行う処理を書き直した関数をまとめた名前空間.
 
namespace  designlab
 
namespace  DxLib
 

関数

void designlab::dxlib_util::InitDxlib3DSetting (bool high_quality)
 3D処理を行う上で必要な初期化処理をまとめたもの.
 
VECTOR designlab::dxlib_util::ConvertToDxlibVec (const Vector3 &vec)
 Dxlibの座標を示すVECTORと,このプログラムで使用しているVectorを変換する.
ロボット座標系は右手座標系, Dxlibは左手座標系(工学は右手・ゲームライブラリは左手が多い)なのでyを反転する.
 
MATRIX designlab::dxlib_util::ConvertToDxlibMat (const RotationMatrix3x3 &mat)
 このプログラムで使用しているMatrixを, Dxlibの行列を示すMATRIXに変換する.
 
Vector3 designlab::dxlib_util::ConvertDesignLabVec (const VECTOR &vec)
 このプログラムで使用しているVectorと, Dxlibの座標を示す VECTOR を変換する.
ロボット座標系は右手座標系, Dxlibは左手座標系(工学は右手・ゲームライブラリは左手が多い) なので y を反転する.
 
void designlab::dxlib_util::SetZBufferEnable ()
 デフォルトだと描画処理を書いた順に描画されるが, これをZバッファを使用して奥行きを考慮して描画するようにする. 毎フレーム実行する必要がある.
 
void designlab::dxlib_util::DrawCube3D (const VECTOR &center_pos, float side_len, unsigned int color)
 3D空間に立方体を描画する.
 
void designlab::dxlib_util::DrawCube3DWithTopPos (const VECTOR &top_pos, float side_len, unsigned int color)
 3D空間に立方体を描画する.立方体の上面の中心の座標から描画する.
 
void designlab::dxlib_util::DrawHexagon (const std::array< VECTOR, 6 > &vertex, unsigned int color)
 3D空間に六角形を描画する.
 
void designlab::dxlib_util::DrawHexagonalPrism (const std::array< VECTOR, 6 > &vertex, float height, unsigned int color)
 3D空間に六角柱を描画する.
 
constexpr VECTOR DxLib::operator+ (const VECTOR &vec1, const VECTOR &vec2)
 
constexpr VECTOR DxLib::operator- (const VECTOR &vec1, const VECTOR &vec2)
 
constexpr VECTOR DxLib::operator* (const VECTOR &vec, const float s)
 
constexpr VECTOR DxLib::operator* (const float s, const VECTOR &vec)
 
constexpr VECTOR DxLib::operator/ (const VECTOR &vec, const float s)