josh
|
b6c5e9e1d7
|
break up Init_Graphics() into Init_SDL() and Init_OpenGL() since they need to be called at separate times
|
2014-07-19 12:34:25 -04:00 |
|
josh
|
b559ef1be0
|
add Window module
|
2014-07-19 09:24:55 -04:00 |
|
josh
|
6ec0383392
|
remove Core c++ module
|
2014-07-18 20:29:45 -04:00 |
|
josh
|
2f2cec509e
|
remove Runtime c++ class
|
2014-07-18 20:28:40 -04:00 |
|
josh
|
447e4279e7
|
Runtime: locate font files
|
2014-07-15 16:54:12 -04:00 |
|
josh
|
4431cf4b29
|
optimize Runtime.default_paths slightly
|
2014-07-15 16:19:41 -04:00 |
|
josh
|
5c9cc2223e
|
set up Ruby load path for runtime modules; add runtime.rb
|
2014-07-15 15:26:35 -04:00 |
|
josh
|
71578566fe
|
link with static libgcc and libstdc++ on Windows
|
2014-07-15 12:05:32 -04:00 |
|
josh
|
4d515297e6
|
rework Rakefile.rb to allow cross-compiling from cygwin
|
2014-07-15 11:56:34 -04:00 |
|
josh
|
d5e7774e3c
|
rename runtime/fonts/freefont -> runtime/fonts/freefont-ttf-20120503
|
2014-07-15 10:32:25 -04:00 |
|
josh
|
ece813da21
|
add dejavu-fonts-ttf-2.34 fonts to runtime
|
2014-07-15 10:31:57 -04:00 |
|
josh
|
17bce5caed
|
move JES_O_BINARY to FileReader.cc
|
2014-07-12 11:23:11 -04:00 |
|
josh
|
a3326b099b
|
print exceptions like MRI
|
2014-07-12 11:12:21 -04:00 |
|
josh
|
2d7d3d14ab
|
pass ARGV to main.rb; catch bootstrapping exceptions
|
2014-07-12 10:30:02 -04:00 |
|
josh
|
f0db52e3d7
|
embed a Ruby; load runtime/main.rb
|
2014-07-12 10:09:24 -04:00 |
|
josh
|
a717ed4a38
|
fix unit tests for reorganized codebase
|
2014-07-12 09:46:32 -04:00 |
|
josh
|
e1c5d0f0f4
|
remove library/gui source trees, put everything under src/
|
2014-07-12 09:46:32 -04:00 |
|
josh
|
45d86d1e35
|
determine baseline offset based on descender for "g" glyph
|
2014-06-26 14:09:02 -04:00 |
|
josh
|
dd5b7bf8fd
|
GUI: add load_buffers(), draw_rect()
|
2014-06-26 12:50:48 -04:00 |
|
josh
|
7c9c176c90
|
add GLBuffer class
|
2014-06-26 12:49:40 -04:00 |
|
josh
|
2f7bac1d75
|
update shaders to #version 410
|
2014-06-26 12:00:04 -04:00 |
|
josh
|
3c22fed1fe
|
GUI: add resize() and draw()
|
2014-06-26 11:15:34 -04:00 |
|
josh
|
23a24e4af4
|
GUI: load GL shaders/programs
|
2014-06-26 10:47:46 -04:00 |
|
josh
|
c5de5ae479
|
rework text shader, add basic and rect shaders
|
2014-06-26 10:47:45 -04:00 |
|
josh
|
7623a85e4e
|
make GUI resizable
|
2014-06-24 21:40:56 -04:00 |
|
josh
|
da2bf02922
|
include string.h in GLTexture.cc
|
2014-06-24 18:31:24 -04:00 |
|
josh
|
33242af038
|
Font: fix glyph vertex and texture coordinates
|
2014-06-24 09:29:28 -04:00 |
|
josh
|
4ef71dae79
|
fix text vertex shader coordinate mapping
|
2014-06-24 09:28:20 -04:00 |
|
josh
|
eb72558cf7
|
add GLTexture class; use from Font::Glyph
|
2014-06-24 09:18:13 -04:00 |
|
josh
|
89849c561a
|
Font::render(): bind buffer before setting vertex attribute pointer
|
2014-06-24 08:40:27 -04:00 |
|
josh
|
98a27bd20b
|
build glyph bitmap position into its VBO coordinates
|
2014-06-23 16:35:39 -04:00 |
|
josh
|
f75cd9d4ad
|
rename GLProgram::operator[]() to GLProgram::get_uniform()
|
2014-06-23 16:24:00 -04:00 |
|
josh
|
5403d13f6a
|
rename Font::operator[]() to Font::get_glyph()
|
2014-06-23 16:23:40 -04:00 |
|
josh
|
d7f7dbdc28
|
rename Font::draw() to Font::render()
|
2014-06-23 16:23:23 -04:00 |
|
josh
|
5558eec534
|
add GLShader::create() which takes a PathRef
|
2014-06-23 16:11:20 -04:00 |
|
josh
|
d54e772803
|
add Path::read()
|
2014-06-23 15:59:38 -04:00 |
|
josh
|
08979cef45
|
add FileReader class
|
2014-06-23 15:57:07 -04:00 |
|
josh
|
975c393b1d
|
JES_Init() should be static inline
|
2014-06-23 15:56:31 -04:00 |
|
josh
|
f7937c1bea
|
rename FileReader to FileLoader
|
2014-06-23 15:46:56 -04:00 |
|
josh
|
29520933f7
|
add test_Ref.cc
|
2014-06-23 15:10:03 -04:00 |
|
josh
|
1d049b5f27
|
Ref: add operator==(), operator!=()
|
2014-06-23 15:07:19 -04:00 |
|
josh
|
8aff635d5f
|
implement vertex coordinate mapping in text.v.glsl
|
2014-06-23 15:05:28 -04:00 |
|
josh
|
21aa8543ac
|
Font: add operator[](), get_baseline_offset()
|
2014-06-23 14:43:38 -04:00 |
|
josh
|
da73f62845
|
compute Font advance from that of "x" glyph
|
2014-06-23 14:26:48 -04:00 |
|
josh
|
91e6988fce
|
add Font::Glyph class
|
2014-06-23 14:23:34 -04:00 |
|
josh
|
959a2571af
|
add Font::get_line_height()
|
2014-06-23 13:08:29 -04:00 |
|
josh
|
77022ae0b5
|
fix reading files without performing newline conversion on Windows
|
2014-06-23 11:51:08 -04:00 |
|
josh
|
dfbbd04862
|
add FontManager::get_mono_font()
|
2014-06-22 21:25:50 -04:00 |
|
josh
|
076e2a51d7
|
fix Runtime::locate() to calculate proper runtime directory
|
2014-06-22 21:24:46 -04:00 |
|
josh
|
bdd28ab362
|
updates to Runtime::locate(), FontManager, and GUI loading
|
2014-06-22 21:16:08 -04:00 |
|
josh
|
1effe27afb
|
link with libjes.a as a source so Rscons picks up library file modifications
|
2014-06-22 21:02:02 -04:00 |
|
josh
|
cae4b077d9
|
fix Path::ext() when new_ext == ""
|
2014-06-22 21:01:38 -04:00 |
|
josh
|
a1e9c30af2
|
add Path::ext()
|
2014-06-22 20:36:54 -04:00 |
|
josh
|
87c3abe0fa
|
add GLShader and GLProgram
|
2014-06-22 16:46:59 -04:00 |
|
josh
|
f94b754b0a
|
Path::dirname() and Path::join() return PathRef
|
2014-06-22 16:08:40 -04:00 |
|
josh
|
6a51c5a880
|
fill in Runtime::locate()
|
2014-06-22 16:02:40 -04:00 |
|
josh
|
c001fca012
|
add Path::dir_entries()
|
2014-06-22 15:42:26 -04:00 |
|
josh
|
e3cb7b15b4
|
add Path::exists()
|
2014-06-22 15:30:05 -04:00 |
|
josh
|
b55d8d0f09
|
Core: store bin path as a Path instead of a std::string
|
2014-06-22 15:12:43 -04:00 |
|
josh
|
49ccad5ed4
|
implement Path::dirname()
|
2014-06-19 00:01:10 -04:00 |
|
josh
|
eb12420155
|
implement Path::join()
|
2014-06-18 23:49:04 -04:00 |
|
josh
|
863fb2018b
|
more Path tests
|
2014-06-18 20:09:58 -04:00 |
|
josh
|
3cd064bcb8
|
add initial Path unit tests
|
2014-06-18 20:07:15 -04:00 |
|
josh
|
28ed5a30a4
|
add Path::to_s()
|
2014-06-18 20:07:07 -04:00 |
|
josh
|
8fb1fee7b8
|
fix LIBPATH for tests
|
2014-06-18 20:06:41 -04:00 |
|
josh
|
28b05da01c
|
add initial Path class
|
2014-06-18 20:03:50 -04:00 |
|
josh
|
83553e78f1
|
add jes.h, Core, and Runtime
|
2014-06-18 19:53:23 -04:00 |
|
josh
|
c19ea4e1b0
|
produce build results in /bin and /lib
|
2014-06-18 18:44:05 -04:00 |
|
josh
|
c23ff6c0ac
|
set return code from GUI::run()
|
2014-06-18 18:39:30 -04:00 |
|
josh
|
b7e66e3031
|
build with gnu99 and gnu++11 standards
|
2014-06-18 17:04:07 -04:00 |
|
josh
|
190e31219c
|
mark Gemfile.lock for usage on x86-mingw32 platform also
|
2014-06-18 16:56:50 -04:00 |
|
josh
|
f7eed2076c
|
update Rakefile to use rscons-1.5.0 features
|
2014-06-17 23:08:50 -04:00 |
|
josh
|
34b453b7dd
|
update to rscons-1.5.0
|
2014-06-17 23:02:51 -04:00 |
|
josh
|
031aa554cd
|
add initial text shaders
|
2014-06-17 22:53:44 -04:00 |
|
josh
|
27a167e97d
|
Font: add constructor/destructor
|
2014-06-15 20:37:31 -04:00 |
|
josh
|
07662e0abc
|
add FreeFont Sans and Serif fonts to runtime/fonts/freefont
|
2014-06-15 18:49:21 -04:00 |
|
josh
|
6767062155
|
add GUI class
|
2014-06-10 21:58:23 -04:00 |
|
josh
|
dc47bf5256
|
add FontManager::load_font()
|
2014-06-10 21:33:11 -04:00 |
|
josh
|
d9261409e0
|
ignore return value of SDL_GL_CreateContext
|
2014-06-10 21:24:50 -04:00 |
|
josh
|
7eba046aa4
|
add FontManager, Font classes
|
2014-06-10 21:23:58 -04:00 |
|
josh
|
3c348fe893
|
tweak build targets
|
2014-06-10 20:43:17 -04:00 |
|
josh
|
4b159037c1
|
add skeleton gui sources
|
2014-06-10 20:00:51 -04:00 |
|
josh
|
ad1b8f4e96
|
fix compilation warning in Text::[]
|
2014-06-10 19:24:22 -04:00 |
|
josh
|
e816e912e9
|
rework Rakefile using a base Rscons Environment
|
2014-06-10 19:23:03 -04:00 |
|
josh
|
36b0ec6bc3
|
add GNU freefont fonts runtime files
|
2014-06-10 18:58:54 -04:00 |
|
josh
|
f360077f04
|
more FileReader tests
|
2014-06-05 20:07:23 -04:00 |
|
josh
|
1d10771048
|
test FileReader::get_line()
|
2014-06-05 20:03:05 -04:00 |
|
josh
|
6ec2a1584d
|
add Text::to_s() for testing
|
2014-06-05 20:01:15 -04:00 |
|
josh
|
fa7a46a2d4
|
add some more FileReader tests
|
2014-06-05 19:45:47 -04:00 |
|
josh
|
21c9e6edfb
|
link with -lpthread on linux
|
2014-06-05 19:26:38 -04:00 |
|
josh
|
dce8f0db5f
|
add "clean" Makefile target
|
2014-06-05 17:14:43 -04:00 |
|
josh
|
eb1474bd84
|
FileReader: fix num_lines()
|
2014-06-05 17:14:42 -04:00 |
|
josh
|
bebd7df072
|
add "test" rake task and initial test case
|
2014-06-05 17:09:09 -04:00 |
|
josh
|
9e4b8aea6e
|
add googletest framework
|
2014-06-05 16:35:08 -04:00 |
|
josh
|
096139a40d
|
FileReader::create Text objects
|
2014-06-05 16:20:27 -04:00 |
|
josh
|
39aa6bbd42
|
implement initial Text functionality
|
2014-06-05 16:08:19 -04:00 |
|
josh
|
346dbaa783
|
FileReader: read lines from file buffer, detect line endings
|
2014-06-05 15:37:03 -04:00 |
|
josh
|
85f2ca91c3
|
list rake and json as gem dependencies
|
2014-06-05 09:21:20 -04:00 |
|
josh
|
af5df42bbc
|
begin implementing FileReader
|
2014-06-04 22:09:57 -04:00 |
|
josh
|
9abd4ef04b
|
add jes::Ref template
|
2014-06-04 21:25:47 -04:00 |
|