Пример #1
0
/*
================
=
= R_GetColumn
=
================
*/

byte *R_GetColumn (int tex, int col)
{
	int	lump, ofs;
	
	col &= texturewidthmask[tex];
	lump = texturecolumnlump[tex][col];
	ofs = texturecolumnofs[tex][col];
	if (lump > 0)
		return (byte *)W_CacheLumpNum(lump,PU_CACHE)+ofs;
	if (!texturecomposite[tex])
		R_GenerateComposite (tex);
	return texturecomposite[tex] + ofs;
Пример #2
0
//
// R_GetTextureColumn
//
tallpost_t* R_GetTextureColumn(int texnum, int colnum)
{
	colnum &= texturewidthmask[texnum];
	int lump = texturecolumnlump[texnum][colnum];
	int ofs = texturecolumnofs[texnum][colnum];

	if (lump > 0)
		return (tallpost_t*)((byte *)W_CachePatch(lump, PU_CACHE) + ofs);

	if (!texturecomposite[texnum])
		R_GenerateComposite(texnum);

	return (tallpost_t*)(texturecomposite[texnum] + ofs);
}
Пример #3
0
//
// R_GetColumn
//
tallpost_t* R_GetColumn(int tex, int col)
{
	int lump;
	int ofs;

	col &= texturewidthmask[tex];
	lump = texturecolumnlump[tex][col];
	ofs = texturecolumnofs[tex][col];
	dc_textureheight = textureheight[tex];

	if (lump > 0)
		return (tallpost_t*)((byte *)W_CachePatch(lump,PU_CACHE) + ofs);

	if (!texturecomposite[tex])
		R_GenerateComposite (tex);

	return (tallpost_t*)(texturecomposite[tex] + ofs);
}
Пример #4
0
//
// R_GetColumn
//
byte*
R_GetColumn
( int		tex,
  int		col )
{
    int		lump;
    int		ofs;
	
    col &= ::g->s_texturewidthmask[tex];
    lump = ::g->s_texturecolumnlump[tex][col];
    ofs = ::g->s_texturecolumnofs[tex][col];
    
    if (lump > 0)
	return (byte *)W_CacheLumpNum(lump,PU_CACHE_SHARED)+ofs;

    if (!::g->s_texturecomposite[tex])
	R_GenerateComposite (tex);

    return ::g->s_texturecomposite[tex] + ofs;
}
Пример #5
0
//
// R_GetColumn
//
byte *R_GetColumn(int tex, int col)
{
    int         lump;
    int         ofs;

    if (lookuptextures[tex] == false)
        R_GenerateLookup(tex);

    col &= texturewidthmask[tex];
    lump = texturecolumnlump[tex][col];
    ofs = texturecolumnofs[tex][col];

    if (lump > 0)
        return ((byte *)W_CacheLumpNum(lump, PU_CACHE) + ofs);

    if (!texturecomposite[tex])
        R_GenerateComposite(tex);

    return (texturecomposite[tex] + ofs);
}
Пример #6
0
//
// R_GetColumn
//
unsigned char*
R_GetColumn
( int		tex,
  int		col )
{
    int		lump;
    int		ofs;
	
    col &= texturewidthmask[tex];
    lump = texturecolumnlump[tex][col];
    ofs = texturecolumnofs[tex][col];
    
    if (lump > 0)
	return (unsigned char *)WadManager::getLump(lump)+ofs;

    if (!texturecomposite[tex])
	R_GenerateComposite (tex);

    return texturecomposite[tex] + ofs;
}
Пример #7
0
//
// R_GetColumn
//
byte*
R_GetColumn
( int		tex,
  int		col )
{
	int lump;
	int ofs;

	col &= texturewidthmask[tex];
	lump = texturecolumnlump[tex][col];
	ofs = texturecolumnofs[tex][col];
	dc_mask = textureheightmask[tex];		// [RH] Tutti-Frutti fix
	
	if (lump > 0)
		return (byte *)W_CacheLumpNum(lump,PU_CACHE)+ofs;

	if (!texturecomposite[tex])
		R_GenerateComposite (tex);

	return texturecomposite[tex] + ofs;
}