GithubHelp home page GithubHelp logo

wangshucheng / games101 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26.44 MB

games101

CMake 0.73% C++ 7.07% C 68.71% Less 0.10% HTML 21.30% CSS 0.34% JavaScript 0.43% Objective-C 1.16% M 0.11% C# 0.02% ShaderLab 0.03% HLSL 0.01%

games101's Introduction

games101_2021

games101

Windows下修改

hw5

作业5编译选项 -fsanitize=undefined 必须吗? – 计算机图形学与混合现实研讨会 (games-cn.org)

UndefinedBehaviorSanitizer — Clang 13 documentation (llvm.org)

CMakeLists.txt 去掉 -fsanitize=undefined

hw7

inline float get_random_float()
{
    std::random_device dev;
    std::mt19937 rng(dev());
    std::uniform_real_distribution<float> dist(0.f, 1.f); // distribution in range [1, 6]

    return dist(rng);
}

win10+MinGW+gcc

std::random_device dev;

运行时报错,原因未知

重新实现

inline float get_random_float()
{
    return rand()%10000/(float)10000;
}

Reference

https://www.cnblogs.com/coolwx/category/1921036.html

games101's People

Contributors

wangshucheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.