mirror of
https://github.com/mouse0w0/lwjglbook-CN-Translation.git
synced 2025-08-23 04:35:29 +08:00
Update to use mkdocs
This commit is contained in:
3
source/.vscode/settings.json
vendored
3
source/.vscode/settings.json
vendored
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"restructuredtext.confPath": "d:\\Workspace\\lwjglbook-CN-Translation\\source"
|
||||
}
|
169
source/conf.py
169
source/conf.py
@@ -1,169 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file does only contain a selection of the most common options. For a
|
||||
# full list see the documentation:
|
||||
# http://www.sphinx-doc.org/en/master/config
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
# import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
import sphinx_rtd_theme
|
||||
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
|
||||
source_parsers = {
|
||||
'.md': CommonMarkParser,
|
||||
}
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'lwjglbook-CN-Translation'
|
||||
copyright = '2018, Mouse0w0'
|
||||
author = 'Mouse0w0'
|
||||
|
||||
# The short X.Y version
|
||||
version = ''
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = ''
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#
|
||||
# needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.githubpages',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
#
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = ['.rst', '.md']
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = 'zh_CN'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path .
|
||||
exclude_patterns = []
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
highlight_language = 'javascript'
|
||||
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#
|
||||
# html_theme_options = {}
|
||||
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Custom sidebar templates, must be a dictionary that maps document names
|
||||
# to template names.
|
||||
#
|
||||
# The default sidebars (for documents that don't match any pattern) are
|
||||
# defined by theme itself. Builtin themes are using these templates by
|
||||
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
|
||||
# 'searchbox.html']``.
|
||||
#
|
||||
# html_sidebars = {}
|
||||
|
||||
|
||||
# -- Options for HTMLHelp output ---------------------------------------------
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'lwjglbook-CN-Translationdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output ------------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#
|
||||
# 'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#
|
||||
# 'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'lwjglbook-CN-Translation.tex', 'lwjglbook-CN-Translation Documentation',
|
||||
'Mouse0w0', 'manual'),
|
||||
]
|
||||
|
||||
|
||||
# -- Options for manual page output ------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'lwjglbook-cn-translation', 'lwjglbook-CN-Translation Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
|
||||
# -- Options for Texinfo output ----------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'lwjglbook-CN-Translation', 'lwjglbook-CN-Translation Documentation',
|
||||
author, 'lwjglbook-CN-Translation', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
|
||||
# -- Extension configuration -------------------------------------------------
|
35
source/index.md
Normal file
35
source/index.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# 《用LWJGL 3开发3D游戏(3D Game Development with LWJGL 3)》中文翻译
|
||||
[](http://lwjglbook-cn-translation.readthedocs.io/zh_CN/latest/?badge=latest)
|
||||
## 本书原介绍
|
||||
这本在线电子书主要讲解使用LWJGL 3库开发3D游戏。
|
||||
|
||||
LWJGL是一个Java库,提供了访问OpenGL、OpenAL和OpenCL的接口。这个库可以在使用高性能的OpenGL的同时,使用Java语言开发。
|
||||
|
||||
我最初的目标是学习使用OpenGL开发3D游戏所涉及的技术。所需资料都可在网上找到,但是没有人将其整理,有时很难找到,甚至有些资料不完整或存在误导。
|
||||
|
||||
我开始收集一些资料,编写一些示例,并决定以电子书的形式整理这些资料。
|
||||
|
||||
## 源代码
|
||||
|
||||
本书中所有的源码示例均上传至[GitHub](https://github.com/lwjglgamedev/lwjglbook).
|
||||
|
||||
本书英文原文地址[GitBook](https://legacy.gitbook.com/book/lwjglgamedev/3d-game-development-with-lwjgl/details) [GitHub](https://github.com/lwjglgamedev/lwjglbook-bookcontents).
|
||||
|
||||
## 许可证
|
||||
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享署名-相同方式共享 4.0 国际许可协议</a>进行许可。
|
||||
|
||||
所有的源代码的许可协议均为 [Apache v2.0](https://www.apache.org/licenses/LICENSE-2.0 "Apache v2.0")
|
||||
|
||||
## 原作者
|
||||
Antonio Hernández Bejarano
|
||||
|
||||
## 支持作者
|
||||
|
||||
如果你喜欢这本书,请Star并且分享它。如果你想捐助作者,你可以通过下面的按钮捐助:
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5MH9AA9TPQQBN)
|
||||
|
||||
或者你更喜欢用比特币: 1Kwe78faWarzGTsWXtdGvjjbS9RmW1j3nb.
|
||||
|
||||
## 译者的话
|
||||
本书是本人为了学习LWJGL 3而翻译的,由于本人的能力有限,如有不正确的地方,欢迎各位指正。
|
@@ -1,62 +0,0 @@
|
||||
《用LWJGL 3开发3D游戏(3D Game Development with LWJGL 3)》中文翻译
|
||||
====
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:caption: 目录
|
||||
|
||||
01-first-steps
|
||||
02-the-game-loop
|
||||
03-a-brief-about-coordinates
|
||||
04-rendering
|
||||
05-more-on-rendering
|
||||
06-transformations
|
||||
07-textures
|
||||
08-camera
|
||||
09-loading-more-complex-models
|
||||
10-let-there-be-light
|
||||
11-let-there-be-even-more-light
|
||||
12-game-hud
|
||||
13-sky-box-and-some-optimizations
|
||||
14-height-maps
|
||||
15-terrain-collisions
|
||||
16-fog
|
||||
17-normal-mapping
|
||||
|
||||
本书原介绍
|
||||
****
|
||||
这本在线电子书主要讲解使用LWJGL 3库开发3D游戏。
|
||||
|
||||
LWJGL是一个Java库,提供了访问OpenGL、OpenAL和OpenCL的接口。这个库可以在使用高性能的OpenGL的同时,使用Java语言开发。
|
||||
|
||||
我最初的目标是学习使用OpenGL开发3D游戏所涉及的技术。所需资料都可在网上找到,但是没有人将其整理,有时很难找到,甚至有些资料不完整或存在误导。
|
||||
|
||||
我开始收集一些资料,编写一些示例,并决定以电子书的形式整理这些资料。
|
||||
|
||||
源代码
|
||||
****
|
||||
本书中所有的源码示例均上传至 `GitHub <https://github.com/lwjglgamedev/lwjglbook>`_
|
||||
|
||||
本书英文原文地址 `GitBook <https://legacy.gitbook.com/book/lwjglgamedev/3d-game-development-with-lwjgl/details>`_ `GitHub <https://github.com/lwjglgamedev/lwjglbook-bookcontents>`_.
|
||||
|
||||
许可证
|
||||
****
|
||||
本作品采用 `知识共享署名-相同方式共享 4.0 国际许可协议 <http://creativecommons.org/licenses/by-sa/4.0/>`_ 进行许可。
|
||||
|
||||
所有的源代码的许可协议均为 `Apache v2.0 <https://www.apache.org/licenses/LICENSE-2.0>`_
|
||||
|
||||
原作者
|
||||
****
|
||||
Antonio Hernández Bejarano
|
||||
|
||||
支持作者
|
||||
****
|
||||
如果你喜欢这本书,请Star并且分享它。如果你想捐助作者,你可以通过下面的按钮捐助:
|
||||
`PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5MH9AA9TPQQBN>`_
|
||||
|
||||
或者你更喜欢用比特币: 1Kwe78faWarzGTsWXtdGvjjbS9RmW1j3nb.
|
||||
|
||||
译者的话
|
||||
****
|
||||
本书是本人为了学习LWJGL 3而翻译的,由于本人的能力有限,如有不正确的地方,欢迎各位指正。
|
||||
|
Reference in New Issue
Block a user