728x90 SMALL ChatGPT2 [ChatGPT][Box2D] Box2D 박스 2D 기본 샘플 코드 Here's an example code for creating a simple Box2D simulation without any other dependencies 다른 의존성 없이 간단한 Box2D 시뮬레이션을 생성하기 위한 예제 코드 #include #include int main() { // Define the gravity vector b2Vec2 gravity(0.0f, -9.81f); // Create a Box2D world with the defined gravity b2World world(gravity); // Create a ground body b2BodyDef groundBodyDef; groundBodyDef.position.Set(0.0f, -10.0f); b2Body* gr.. 2023. 3. 19. [ChatGPT][DxLib] C++에서 DxLib를 사용하여 창을 표시하는 간단한 예제 샘플 코드 C++에서 DxLib(Windows, Android)를 사용하여 창을 표시하는 간단한 예제 샘플 코드 DxLib Windows 예제 코드 #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Initialize DXLib if (DxLib_Init() == -1) { return -1; } // Set up the window ChangeWindowMode(TRUE); // Set to windowed mode SetGraphMode(800, 600, 32); // Set the window size and color depth SetWindowText("DXLi.. 2023. 2. 7. 이전 1 다음 728x90 LIST