@@ -2,7 +2,7 @@ package opengl
2
2
3
3
import (
4
4
"github.com/go-gl/gl/v2.1/gl"
5
- "github.com/tinogoehlert/goom"
5
+ "github.com/tinogoehlert/goom/goom "
6
6
"github.com/tinogoehlert/goom/level"
7
7
)
8
8
@@ -73,12 +73,12 @@ func (s *subSector) addFlats(md *level.Level, gd *goom.GameData, ts glTextureSto
73
73
74
74
s .sector = sector
75
75
if len (gd .Flat (sector .FloorTexture ())) > 0 {
76
- fm := newGlWorldGeometry (floorData , sector .LightLevel (), ts [sector .FloorTexture ()])
77
- s .floors = addGlWorldGeometry (s .floors , fm )
76
+ fm := newGlWorldutils (floorData , sector .LightLevel (), ts [sector .FloorTexture ()])
77
+ s .floors = addGlWorldutils (s .floors , fm )
78
78
}
79
79
if len (gd .Flat (sector .CeilTexture ())) > 0 {
80
- cm := newGlWorldGeometry (ceilData , md .Sectors [side .Sector ].LightLevel (), ts [sector .CeilTexture ()])
81
- s .ceilings = addGlWorldGeometry (s .ceilings , cm )
80
+ cm := newGlWorldutils (ceilData , md .Sectors [side .Sector ].LightLevel (), ts [sector .CeilTexture ()])
81
+ s .ceilings = addGlWorldutils (s .ceilings , cm )
82
82
}
83
83
}
84
84
@@ -135,8 +135,8 @@ func (s *subSector) addWalls(md *level.Level, gd *goom.GameData, ts glTextureSto
135
135
- start .X (), sector .CeilHeight (), start .Y (), - sLen / tw , height / th ,
136
136
}
137
137
if gd .Texture (side .Upper ()) != nil {
138
- wm := newGlWorldGeometry (wallData , sector .LightLevel (), ts [side .Upper ()])
139
- s .walls = addGlWorldGeometry (s .walls , wm )
138
+ wm := newGlWorldutils (wallData , sector .LightLevel (), ts [side .Upper ()])
139
+ s .walls = addGlWorldutils (s .walls , wm )
140
140
}
141
141
}
142
142
@@ -159,8 +159,8 @@ func (s *subSector) addWalls(md *level.Level, gd *goom.GameData, ts glTextureSto
159
159
- start .X (), sector .FloorHeight (), start .Y (), - sLen / tw , height / th ,
160
160
}
161
161
if gd .Texture (side .Lower ()) != nil {
162
- wm := newGlWorldGeometry (wallData , sector .LightLevel (), ts [side .Lower ()])
163
- s .walls = addGlWorldGeometry (s .walls , wm )
162
+ wm := newGlWorldutils (wallData , sector .LightLevel (), ts [side .Lower ()])
163
+ s .walls = addGlWorldutils (s .walls , wm )
164
164
}
165
165
}
166
166
@@ -181,8 +181,8 @@ func (s *subSector) addWalls(md *level.Level, gd *goom.GameData, ts glTextureSto
181
181
- end .X (), sector .FloorHeight (), end .Y (), - eLen / tw , height / th ,
182
182
- start .X (), sector .FloorHeight (), start .Y (), - sLen / tw , height / th ,
183
183
}
184
- wm := newGlWorldGeometry (wallData , sector .LightLevel (), ts [side .Middle ()])
185
- s .walls = addGlWorldGeometry (s .walls , wm )
184
+ wm := newGlWorldutils (wallData , sector .LightLevel (), ts [side .Middle ()])
185
+ s .walls = addGlWorldutils (s .walls , wm )
186
186
}
187
187
}
188
188
}
0 commit comments